MCPcopy Create free account
hub / github.com/dmlc/decord / test_resample

Function test_resample

tests/python/unittests/test_audio_reader.py:40–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 assert np.allclose(ar[10].asnumpy(), ar2[10].asnumpy())
39
40def test_resample():
41 ar = get_resampled_reader()
42 assert ar.shape() == (1, 48224)
43
44def test_channel_change():
45 ar = get_channel_change_reader()

Callers

nothing calls this directly

Calls 2

get_resampled_readerFunction · 0.85
shapeMethod · 0.45

Tested by

no test coverage detected