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

Function check

imperative/python/test/unit/amp/test_autocast.py:6–12  ·  view source on GitHub ↗
(enabled, low, high)

Source from the content-addressed store, hash-verified

4
5def test_autocast():
6 def check(enabled, low, high):
7 assert amp.enabled == enabled
8 assert origin_amp._enabled == enabled
9 assert amp.low_prec_dtype == low
10 assert origin_amp._get_amp_low_prec_dtype() == low
11 assert amp.high_prec_dtype == high
12 assert origin_amp._get_amp_high_prec_dtype() == high
13
14 origin_enabled = amp.enabled
15 origin_high = amp.high_prec_dtype

Callers 15

test_autocastFunction · 0.70
lookupMethod · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
check_paramMethod · 0.50
CPUDispatchCheckerMethod · 0.50
TESTFunction · 0.50
run_noncontig_testFunction · 0.50
TESTFunction · 0.50
run_negative_index_testFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected