Class TensorEncoding
java.lang.Object
io.github.kirstenali.deepj.tensor.TensorEncoding
Raw-bit, logical-order tensor payloads; no FLOAT32 shadow is needed for compact storage.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidreadValues(DataInput input, Tensor tensor) static TensorreadValuesToBackend(DataInput input, DType dtype, int... shape) Explicit checkpoint transfer; private host staging is released after an independent backend copy.static voidExplicit host-side restoration after file validation; not an operator fallback.static voidwrite(DataOutput output, Tensor tensor) static voidwriteValues(DataOutput output, Tensor tensor)
-
Method Details
-
write
- Throws:
IOException
-
writeValues
- Throws:
IOException
-
readInto
- Throws:
IOException
-
readValuesToBackend
public static Tensor readValuesToBackend(DataInput input, DType dtype, int... shape) throws IOException Explicit checkpoint transfer; private host staging is released after an independent backend copy.- Throws:
IOException
-
readValues
- Throws:
IOException
-
restore
Explicit host-side restoration after file validation; not an operator fallback.
-