def write_flat

bendtorch-core@0.1.0.0 · src/tensor/signed.bend:278

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

278def write_flat(+shape: Shape.Shape, tensor: Core.Tensor<shape>, index: Position, +value: F32) ->
279  Core.Tensor<shape> & Result<&2, &2, Core.Error, Unit>:
280  Core.write_flat(shape, tensor, wrap(Shape.count(shape), index), value)

Uses (11)

Used by (2)