def sliced

bendtorch-core@0.1.0.0 · src/tensor/slice.bend:369

import bendtorch-core@0.1.0.0/src/tensor/slice.bend as Slice
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

369def sliced(+shape: Shape.Shape, tensor: Core.Tensor<shape>, planned: Result<&2, &2, Error, Planned>) ->
370  Core.Dynamic & Result<&2, &1, Error, Core.Dynamic>:
371  match planned:
372    case Fail{error}:
373      (Core.Packed{shape, tensor}, Fail{error})
374    case Done{Planned{+plan, +output}}:
375      built(Forward{}, shape, output, plan, tensor, Core.new(output, 0.0))

Uses (11)

Used by (2)