def copied
bendtorch-core@0.1.0.0 · src/tensor/gather.bend:428
import bendtorch-core@0.1.0.0/src/tensor/gather.bend as Gather
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
428def copied(+shape: Shape.Shape, tensor: Core.Tensor<shape>, +entries: List<&2, U32>, planned: Result<&2, &2, Error, Planned>) ->
429 Core.Dynamic & Result<&2, &1, Error, Core.Dynamic>:
430 match planned:
431 case Fail{error}:
432 (Core.Packed{shape, tensor}, Fail{error})
433 case Done{Planned{+plan, +output}}:
434 built(Forward{}, shape, output, plan, entries, tensor, Core.new(output, 0.0))