law signed_reshape_unsigned
import bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend as SignedLAWSimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
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
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed
186# Exact sizes reshape exactly as the unsigned reshape does, its errors as
187# TransformError.
188law signed_reshape_unsigned:
189 for +input: Shape.Shape
190 for tensor: Core.Tensor<input>
191 for +dimensions: List<&2, U32>
192 {Signed.reshape(input, tensor, exacts(dimensions)) == Signed.transformed(Transforms.reshape(input, tensor, dimensions)) :
193 Result<&2, &1, Signed.Error, Core.Dynamic>}
Uses (20)
Used by (0)
No other definition uses this definition.