type ReshapeFailure

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

import bendtorch-core@0.1.0.0/src/tensor/transform_totality.bend as TransformTotality
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/transforms.bend as Transforms

39type ReshapeFailure<-input: Shape.Shape, -target: Shape.Shape, -original: Core.Tensor<input>> is Data:
40  ReshapeFailure{-exact: {Transforms.reshape(input, original, Shape.dimensions(target)) == Fail{Transforms.LayoutError{Layout.ElementCountMismatch{}}} :
41    Result<&2, &1, Transforms.Error, Core.Dynamic>}}

Uses (8)

Used by (1)