Upload 2 files
Browse files- chunkformer.onnx +3 -0
- chunkformer_offline.md +13 -0
chunkformer.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac46d815041d591aa091236913c68244b846e13656bf74297cfd6119bf2ce546
|
| 3 |
+
size 478326520
|
chunkformer_offline.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
chunk_size=64
|
| 2 |
+
left_context_size=128
|
| 3 |
+
right_context_size=128
|
| 4 |
+
|
| 5 |
+
ort_session = ort.InferenceSession(onnx_path)
|
| 6 |
+
ort_inputs = {
|
| 7 |
+
"xs": xs.numpy(),
|
| 8 |
+
"xs_lens": xs_lens.numpy(),
|
| 9 |
+
"chunk_size": np.array(chunk_size, dtype=np.int64),
|
| 10 |
+
"left_context_size": np.array(left_context_size, dtype=np.int64),
|
| 11 |
+
"right_context_size": np.array(right_context_size, dtype=np.int64),
|
| 12 |
+
}
|
| 13 |
+
ort_outs = ort_session.run(None, ort_inputs)[0]
|