(buffer: np.ndarray)
| 73 | |
| 74 | |
| 75 | def get_float32_buffer(buffer: np.ndarray): |
| 76 | if buffer.dtype == np.int16: |
| 77 | return buffer.astype(np.float32) / np.iinfo("int16").max |
| 78 | if buffer.dtype == np.int8: |
| 79 | return buffer.astype(np.float32) / np.iinfo("int8").max |
| 80 | return buffer |
| 81 | |
| 82 | |
| 83 | def validate_samples(samples_b64: SamplesB64, samples_cloud: SamplesCloud): |
no outgoing calls
no test coverage detected