def Kept

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

import bendtorch-core@0.1.0.0/src/tensor/permute_values.bend as PermuteValues
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
import bendtorch-core@0.1.0.0/src/storage/LAWS.bend as StorageLaws
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/lifecycle.bend as Lifecycle
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
import bendtorch-core@0.1.0.0/src/tensor/transforms.bend as Transforms

141def Kept(+input: Shape.Shape, +axes: List<&2, U32>, +plan: Layout.Plan<input, axes>, Q: Core.Tensor<input> & Result<&2, &1, Transforms.Error, Core.Dynamic> -> Type,
142  source: Storage.Storage, made: Storage.Storage) -> Type:
143  @-kf: {Lifecycle.logical_length(StorageLaws.step(source, StorageLaws.First{})) == Shape.logical_numel(Shape.dimensions(input)) : Nat} ->
144  @-ko: {Lifecycle.logical_length(made) == Shape.logical_numel(Shape.dimensions(Layout.output(input, axes, plan))) : Nat} ->
145    Packed(input, axes, plan, Q, StorageLaws.step(source, StorageLaws.First{}), kf, made, ko)

Uses (18)

Used by (2)