~/bend-docscommunity

tensor_checkpoint.bend fails

raw source on the hub · import stelliferous@0.0.3.0/tensor_checkpoint.bend as Tensor_checkpoint

A PyTorch checkpoint: the ZIP archive torch.save writes, whose data.pkl holds the saved object and whose data/<key> entries hold the storages. The saved module tree, or a state dict, gives one tensor per state-dict entry under its PyTorch name, read from its storage in the stored format.

10 imports
import Base
import ./storage_bytes.bend as Bytes
import ./checkpoint_zip.bend as Archive
import ./checkpoint_pickle.bend as Pickle
import ./storage_element_format.bend as Formats
import ./tensor.bend as Tensors
import ./tensor_file.bend as Files
import ./tensor_model.bend as Models
import ./tensor_view.bend as Views
import ./tensor_shape.bend as Shapes