Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ isinf
Function
isinf
imperative/python/megengine/xla/rules/elemwise.py:445–446 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
443
444
445
def
isinf(x):
446
return
_elemwise_unary(chlo.IsInfOp, x).astype(np.bool_)
447
448
449
# Elemwise.Mode is unhashable, so we convert it to str
Callers
1
checknonfinite_lower
Function · 0.70
Calls
2
_elemwise_unary
Function · 0.85
astype
Method · 0.45
Tested by
no test coverage detected