def copy_step

bendtorch-core@0.1.0.0 · src/tensor/transforms.bend:95

import bendtorch-core@0.1.0.0/src/tensor/transforms.bend as Transforms
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
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout

95def copy_step(+input: Shape.Shape, +axes: List<&2, U32>, +plan: Layout.Plan<input, axes>,
96  source: Core.Tensor<input>, target: Core.Tensor<Layout.output(input, axes, plan)>, +i: U32) ->
97  Core.Tensor<input> & Result<&2, &1, Error, Core.Tensor<Layout.output(input, axes, plan)>>:
98  copy_mapped(input, axes, plan, i, source => target => (source, Done{target}), source, target,
99    Layout.map_index(input, axes, plan, i))

Uses (12)

Used by (13)