MCPcopy
hub / github.com/pytorch/pytorch / iscomplexobj

Function iscomplexobj

torch/_numpy/_funcs_impl.py:1775–1776  ·  view source on GitHub ↗
(x: ArrayLike)

Source from the content-addressed store, hash-verified

1773
1774
1775def iscomplexobj(x: ArrayLike):
1776 return torch.is_complex(x)
1777
1778
1779def isrealobj(x: ArrayLike):

Callers 7

assert_equalFunction · 0.90
assert_almost_equalFunction · 0.90
test_basicMethod · 0.90
test_scalarMethod · 0.90
test_listMethod · 0.90
test_basicMethod · 0.90
common_typeFunction · 0.85

Calls 1

is_complexMethod · 0.80

Tested by 4

test_basicMethod · 0.72
test_scalarMethod · 0.72
test_listMethod · 0.72
test_basicMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…