MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _simulate_error

Function _simulate_error

imperative/python/megengine/functional/utils.py:49–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48
49def _simulate_error():
50 x1 = zeros(100)
51 x2 = ones(100)
52 (ret,) = apply(AssertEqual(maxerr=0, verbose=False), x1, x2, x2)
53 return ret
54
55
56topk_accuracy = deprecated_func(

Callers

nothing calls this directly

Calls 4

AssertEqualClass · 0.85
zerosFunction · 0.70
onesFunction · 0.70
applyFunction · 0.50

Tested by

no test coverage detected