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

Function asarray

torch/_numpy/_ndarray.py:525–526  ·  view source on GitHub ↗
(a, dtype=None, order="K", *, like=None)

Source from the content-addressed store, hash-verified

523
524
525def asarray(a, dtype=None, order="K", *, like=None):
526 return array(a, dtype=dtype, order=order, like=like, copy=False, ndmin=0)
527
528
529def ascontiguousarray(a, dtype=None, *, like=None):

Callers 15

assert_array_compareFunction · 0.90
assert_almost_equalFunction · 0.90
dot_generalizedFunction · 0.90
doMethod · 0.90
doMethod · 0.90
original_fftshiftMethod · 0.90
original_ifftshiftMethod · 0.90
normalize_array_likeFunction · 0.85
__new__Method · 0.85
realMethod · 0.85
imagMethod · 0.85

Calls 1

arrayFunction · 0.85

Tested by 7

assert_almost_equalFunction · 0.72
dot_generalizedFunction · 0.72
doMethod · 0.72
doMethod · 0.72
original_fftshiftMethod · 0.72
original_ifftshiftMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…