MCPcopy Index your code
hub / github.com/pytorch/pytorch / reshape

Method reshape

torch/_numpy/_ndarray.py:402–404  ·  view source on GitHub ↗
(self, *shape, order="C")

Source from the content-addressed store, hash-verified

400 return _funcs.transpose(self, axes)
401
402 def reshape(self, *shape, order="C"):
403 # arr.reshape(shape) and arr.reshape(*shape)
404 return _funcs.reshape(self, shape, order=order)
405
406 def sort(self, axis=-1, kind=None, order=None):
407 # ndarray.sort works in-place

Callers 15

_exec_fftFunction · 0.45
_lobpcgFunction · 0.45
_get_svqbMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
column_stackFunction · 0.45
native_group_normFunction · 0.45
repeatFunction · 0.45
_reshape_view_helperFunction · 0.45
reshape_asFunction · 0.45
diag_embedFunction · 0.45

Calls

no outgoing calls

Tested by 15

forwardMethod · 0.36
test_splitMethod · 0.36
test_sum_simpleMethod · 0.36
test_sum_dimMethod · 0.36
test_sum_keepdim_castMethod · 0.36
test_reshapeMethod · 0.36
test_viewMethod · 0.36
opMethod · 0.36