Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
49
def
_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
56
topk_accuracy = deprecated_func(
Callers
nothing calls this directly
Calls
4
AssertEqual
Class · 0.85
zeros
Function · 0.70
ones
Function · 0.70
apply
Function · 0.50
Tested by
no test coverage detected