MCPcopy Create free account
hub / github.com/espnet/espnet / any_allzero

Function any_allzero

espnet2/train/preprocessor.py:132–135  ·  view source on GitHub ↗
(signal)

Source from the content-addressed store, hash-verified

130
131
132def any_allzero(signal):
133 if isinstance(signal, (list, tuple)):
134 return any([np.allclose(s, 0.0) for s in signal])
135 return np.allclose(signal, 0.0)
136
137
138class CommonPreprocessor(AbsPreprocessor):

Callers 1

_random_crop_rangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…