checkpoint_pickle.bend fails
raw source on the hub · import stelliferous@0.0.3.0/checkpoint_pickle.bend as Checkpoint_pickle
A pickle, the object graph torch.save writes, replayed opcode by opcode into values: the stack machine of protocol 2 with the string, global and memo opcodes of protocol 4. No code runs: a class is a Global, an instance keeps its class, arguments and state, and a call keeps its callable and arguments.
3 imports
import Base import ./storage_bytes.bend as Bytes import ./storage_buffer.bend as Buffers
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>}