~/bend-docscommunity

src/tensor/allocation_spec.bend checks

raw source on the hub · import bendtorch-core@0.1.0.0/src/tensor/allocation_spec.bend as Allocation_spec

5 imports
import Base
import ../storage/main.bend as Storage
import ./core.bend as Core
import ../shape/core.bend as Shape
import ./lifecycle.bend as Lifecycle

Types

type TensorDone source · line 21 · raw

@-shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @-result:Result<&2, &1, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Error, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Tensor<shape>> -> Data

Definitions

def storage_length source · line 7 · raw

@result:Result<&2, &1, 0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.Error, 0x1689e5deb278c16abd3bd45eac101ef3/src/storage/main.Storage> -> Maybe<&2, Nat>

def tensor_length source · line 14 · raw

@-shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @result:Result<&2, &1, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Error, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Tensor<shape>> -> Maybe<&2, Nat>