MCPcopy Create free account
hub / github.com/pytorch/pytorch / normalize_array_like

Function normalize_array_like

torch/_numpy/_normalizations.py:43–46  ·  view source on GitHub ↗
(x, parm=None)

Source from the content-addressed store, hash-verified

41
42
43def normalize_array_like(x, parm=None):
44 from ._ndarray import asarray
45
46 return asarray(x).tensor
47
48
49def normalize_array_like_or_scalar(x, parm=None):

Callers 7

normalize_seq_array_likeFunction · 0.85
einsumFunction · 0.85
isscalarFunction · 0.85
histogramddFunction · 0.85
__setitem__Method · 0.85

Calls 1

asarrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…