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