Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1775
def
iscomplexobj(x: ArrayLike):
1776
return
torch.is_complex(x)
1777
1778
1779
def
isrealobj(x: ArrayLike):
Callers
7
assert_equal
Function · 0.90
assert_almost_equal
Function · 0.90
test_basic
Method · 0.90
test_scalar
Method · 0.90
test_list
Method · 0.90
test_basic
Method · 0.90
common_type
Function · 0.85
Calls
1
is_complex
Method · 0.80
Tested by
4
test_basic
Method · 0.72
test_scalar
Method · 0.72
test_list
Method · 0.72
test_basic
Method · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…