MCPcopy 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_goptionsFunction · 0.70
test_goptions_log_expFunction · 0.70
_Function · 0.50

Calls 2

logFunction · 0.90
expFunction · 0.90

Tested by

no test coverage detected