Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ g
Function
g
imperative/python/test/unit/jit/test_tracing.py:364–366 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
362
363
@trace(symbolic=True, opt_level=1, capture_as_const=True)
364
def
g(x):
365
y = 2.0 * x
366
return
y / y
367
368
d = tensor(0.0)
369
assert not np.isfinite(f(d).numpy())
Callers
4
test_goptions
Function · 0.70
test_goptions_log_sum_exp
Function · 0.70
test_goptions_log_exp
Function · 0.70
_
Function · 0.50
Calls
2
log
Function · 0.90
exp
Function · 0.90
Tested by
no test coverage detected