def reshape
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signedimport 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
236# PyTorch's reshape with -1: the sizes inferred, then the unsigned reshape.
237def reshape(+input: Shape.Shape, tensor: Core.Tensor<input>, +extents: List<&2, Extent>) -> Result<&2, &1, Error, Core.Dynamic>:
238 reshape_inferred(input, tensor, inferred_dimensions(Shape.elements(input), extents))