|
Download chunkformer_offline.md from Audrey178/chunkformer-onnx: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/Audrey178/chunkformer-onnx/resolve/main/chunkformer_offline.md
- Command line
-
hf download hf://Audrey178/chunkformer-onnx/chunkformer_offline.md
-
curl -L -o chunkformer_offline.md https://huggingface.co/Audrey178/chunkformer-onnx/resolve/main/chunkformer_offline.md
403 Bytes
chunk_size=64 left_context_size=128 right_context_size=128
ort_session = ort.InferenceSession(onnx_path) ort_inputs = { "xs": xs.numpy(), "xs_lens": xs_lens.numpy(), "chunk_size": np.array(chunk_size, dtype=np.int64), "left_context_size": np.array(left_context_size, dtype=np.int64), "right_context_size": np.array(right_context_size, dtype=np.int64), } ort_outs = ort_session.run(None, ort_inputs)[0]