def kept_source

bendtorch-core@0.1.0.0 · src/tensor/permute_values.bend:46

import bendtorch-core@0.1.0.0/src/tensor/permute_values.bend as PermuteValues
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/storage/main.bend as Storage
import bendtorch-core@0.1.0.0/src/storage/LAWS.bend as StorageLaws
import bendtorch-core@0.1.0.0/src/tensor/contracts/replayed.bend as Replayed

46# The parallel copy hands the source back as the First half of its clone.
47def kept_source(+input: Shape.Shape, +fill: F32, +ops: List<&2, StorageLaws.Op>) -> Storage.Storage:
48  Replayed.storage(input, fill, Replayed.snoc(ops, StorageLaws.First{}))

Uses (7)

Used by (3)