TensorModel.copy: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_model.bend as TensorModel Lines 80-84 of stelliferous@0.0.2.0/tensor_model.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/tensor_model.bend&start_line=80&end_line=84 import Base import stelliferous@0.0.2.0/tensor_layout.bend as Layout # Two stores with the same tensors, to run a model more than once. def copy(store: Store) -> Store & Store: match store: case Empty{}: (Empty{},Empty{}) case Entry{+name,tensor,rest}: copied_entry(name,Layout.copy(~F32,tensor),copy(rest)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_layout.bend&name=copy https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_model.bend&name=Store https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_model.bend&name=copied_entry