reshape method

Tensor reshape(
  1. List<int> newShape
)

Implementation

Tensor reshape(List<int> newShape) {
  // Use the SAME handle, but mark it as a view so it's never double-freed
  return Tensor._raw(this._handle, newShape, isView: true);
}