Python wrappers
Public Python APIs implemented by this engine symbol.Reshape that never copies: the result always shares a's storage.
The same view reshape_op makes when a's elements read in place
as new_shape — a dense tensor on either device, or a strided view whose
new shape only drops or inserts size-1 axes. Where reshape_op would copy
instead (x.t().view(-1)), this raises.
Raises
ShapeMismatchThe element counts differ, or
-1 cannot be inferred.LucidErrora cannot be viewed as new_shape without a copy.