def from_values_new
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Coreimport 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)
- bendtorch-core@0.1.0.0/src/tensor/core:from_values_counted
- bendtorch-core@0.1.0.0/src/tensor/construction_PROOF:allocated_fill_success
- bendtorch-core@0.1.0.0/src/tensor/construction_PROOF:from_values_counted_elements
- bendtorch-core@0.1.0.0/src/tensor/construction_PROOF:from_values_new_elements
- bendtorch-core@0.1.0.0/src/tensor/core_PROOF:count_decision
- …