def from_values_new

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

import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

390def from_values_new(-shape: Shape.Shape, values: List<&2, F32>, result: Result<&2, &1, Error, Tensor<shape>>) ->
391  Result<&2, &1, Error, Tensor<shape>>:
392  match result:
393    case Fail{error}:
394      Fail{error}
395    case Done{tensor}:
396      fill_values(values, shape, tensor, 0n)

Uses (7)

Used by (6)