def new

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

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
import bendtorch-core@0.1.0.0/src/storage/main.bend as Storage

91def new(+shape: Shape.Shape, fill: F32) -> Result<&2, &1, Error, Tensor<shape>>:
92  new_result(shape, Storage.new(Shape.count(shape), fill))

Uses (8)

Used by (102)