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

Method assert_equal

imperative/python/megengine/jit/tracing.py:1021–1024  ·  view source on GitHub ↗
(expect, real, **kwargs)

Source from the content-addressed store, hash-verified

1019 return testcases[0][expect_name(var)].shape
1020
1021 def assert_equal(expect, real, **kwargs):
1022 op = AssertEqual(**kwargs)
1023 (res,) = G.apply_normal_varnode(op, expect, real)
1024 return res._node
1025
1026 verbose = not silent
1027

Callers 15

workerFunction · 0.80
test_detachFunction · 0.80
run_frozen_bnFunction · 0.80
test_bn_no_track_stat2Function · 0.80
test_rng_empty_tensorFunction · 0.80
test_replace_varFunction · 0.80
test_replace_oprFunction · 0.80
test_modify_paramsFunction · 0.80
test_make_constFunction · 0.80
test_add_inputFunction · 0.80
test_add_remove_outputFunction · 0.80

Calls 1

AssertEqualClass · 0.85

Tested by 15

workerFunction · 0.64
test_detachFunction · 0.64
run_frozen_bnFunction · 0.64
test_bn_no_track_stat2Function · 0.64
test_rng_empty_tensorFunction · 0.64
test_replace_varFunction · 0.64
test_replace_oprFunction · 0.64
test_modify_paramsFunction · 0.64
test_make_constFunction · 0.64
test_add_inputFunction · 0.64
test_add_remove_outputFunction · 0.64