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
The reader could not load this file (at 0xd6aaab858a4fbd1461bd0fee27b97184/checkpoint_pickle.bend:14). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Text)
- observed : 'Text'
Location:
13 | Float{high: U32,low: U32}
14>| Text{text: String}
| ^^^^
15 | Sequence{items: List<&2,Value>}