def copy
import stelliferous@0.0.2.0/tensor_model.bend as TensorModelimport Base
import stelliferous@0.0.2.0/tensor_layout.bend as Layout
80# Two stores with the same tensors, to run a model more than once.
81def copy(store: Store) -> Store & Store:
82 match store:
83 case Empty{}: (Empty{},Empty{})
84 case Entry{+name,tensor,rest}: copied_entry(name,Layout.copy(~F32,tensor),copy(rest))