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

Function test_Normalize

imperative/python/test/unit/data/test_transform.py:73–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72
73def test_Normalize():
74 t = Normalize()
75 aug_data = t.apply_batch(generate_data())
76 aug_data_shape = [(a.shape, b.shape) for a, b in aug_data]
77 target_shape = [(data_shape, label_shape)] * 4
78 assert aug_data_shape == target_shape
79
80
81def test_RandomCrop():

Callers

nothing calls this directly

Calls 3

NormalizeClass · 0.85
generate_dataFunction · 0.85
apply_batchMethod · 0.45

Tested by

no test coverage detected