law signed_reshape_infers
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/signed.bend as Signed
169# A reshape infers its sizes from the input's element count, then is the
170# unsigned reshape.
171law signed_reshape_infers:
172 for +input: Shape.Shape
173 for tensor: Core.Tensor<input>
174 for +extents: List<&2, Signed.Extent>
175 {Signed.reshape(input, tensor, extents) ==
176 Signed.reshape_inferred(input, tensor, Signed.inferred_dimensions(Shape.elements(input), extents)) :
177 Result<&2, &1, Signed.Error, Core.Dynamic>}
Uses (11)
Used by (0)
No other definition uses this definition.