Apply constant folding
Browse files- constant_folding.sh +11 -0
- rtmo-l.fp16.onnx +2 -2
- rtmo-l.fp16_batch1.onnx +2 -2
- rtmo-l.fp16_batch2.onnx +2 -2
- rtmo-l.fp16_batch4.onnx +2 -2
- rtmo-l.onnx +2 -2
- rtmo-l_batch1.onnx +2 -2
- rtmo-l_batch2.onnx +2 -2
- rtmo-l_batch4.onnx +2 -2
- rtmo-m.fp16.onnx +2 -2
- rtmo-m.fp16_batch1.onnx +2 -2
- rtmo-m.fp16_batch2.onnx +2 -2
- rtmo-m.fp16_batch4.onnx +2 -2
- rtmo-m.onnx +2 -2
- rtmo-m_batch1.onnx +2 -2
- rtmo-m_batch2.onnx +2 -2
- rtmo-m_batch4.onnx +2 -2
- rtmo-s.fp16.onnx +2 -2
- rtmo-s.fp16_batch1.onnx +2 -2
- rtmo-s.fp16_batch2.onnx +2 -2
- rtmo-s.fp16_batch4.onnx +2 -2
- rtmo-s.onnx +2 -2
- rtmo-s_batch1.onnx +2 -2
- rtmo-s_batch2.onnx +2 -2
- rtmo-s_batch4.onnx +2 -2
- rtmo-t.fp16.onnx +2 -2
- rtmo-t.fp16_batch1.onnx +2 -2
- rtmo-t.fp16_batch2.onnx +2 -2
- rtmo-t.fp16_batch4.onnx +2 -2
- rtmo-t.onnx +2 -2
- rtmo-t_batch1.onnx +2 -2
- rtmo-t_batch2.onnx +2 -2
- rtmo-t_batch4.onnx +2 -2
constant_folding.sh
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
|
3 |
+
# Loop through all .onnx files in the current directory
|
4 |
+
for model in *.onnx; do
|
5 |
+
echo "Sanitizing model: $model"
|
6 |
+
# Perform sanitization using polygraphy
|
7 |
+
polygraphy surgeon sanitize "$model" --fold-constants --output "$model"
|
8 |
+
echo "Sanitization complete for: $model"
|
9 |
+
done
|
10 |
+
|
11 |
+
echo "All models have been sanitized."
|
rtmo-l.fp16.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:955c0c6566c46b8c720cdd822bda8d647827fa7d76e89371cc7f287e392a72ed
|
3 |
+
size 88025438
|
rtmo-l.fp16_batch1.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:82f9f0be31cc2591bf15af674105820c4306ef6c4862eee0eaeeaa2b7a7ca488
|
3 |
+
size 88013266
|
rtmo-l.fp16_batch2.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5ed95801d5a9822f3f809af86d25a004428b42bdd92d9014ba5dcee62cf7f863
|
3 |
+
size 88013362
|
rtmo-l.fp16_batch4.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:caa71599528ed1e54b78ff732d9378fa292e83cc06ad00ddc9d8532344228f35
|
3 |
+
size 88013510
|
rtmo-l.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8192d2fa08778d41cde061957687f3e1396f46acc0fc24c261ee1c01f7416673
|
3 |
+
size 175931300
|
rtmo-l_batch1.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:702d40477ebf4c99d4f47640c6a97fecb6de57db5ad3df68f104e3f8c6126860
|
3 |
+
size 175919191
|
rtmo-l_batch2.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2eabba0dee5836d752d25632d1c3fddf3ffadb0cf9b0adb09601e594a9ee96da
|
3 |
+
size 175919297
|
rtmo-l_batch4.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8dd7dcf27c2738bce5ac76e4e40fbc5d86ae0768a654c13709f2941e026d5e1a
|
3 |
+
size 175919465
|
rtmo-m.fp16.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:908b45cc80feb94e9abbfc1c3254db53da1c4853a8e70e2985c5d10d1a06cf74
|
3 |
+
size 44703294
|
rtmo-m.fp16_batch1.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:173e198fedb731ed4fb8feb9f03f6d10f30902f489cf89341a82111348a13ae0
|
3 |
+
size 44691469
|
rtmo-m.fp16_batch2.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a8a59e0138a3e7781ebcc63af6769cdfbcdee5302e8a706d5b54a220f1ffb4e
|
3 |
+
size 44691565
|
rtmo-m.fp16_batch4.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b1801d07ed9cd0dcdb5d59d2fb5eeb48ec3a696e102e967fb7e7a8134dcc1bd3
|
3 |
+
size 44691713
|
rtmo-m.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:30c6971f5ed7bd8acf7184135579856568f9dad456e4fe6fd66da6580eb34512
|
3 |
+
size 89296694
|
rtmo-m_batch1.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:225d7a1f39b38bcf35dd44c02ba60cb1ecda4afceaeb222a6ee5d208c1f02a99
|
3 |
+
size 89284932
|
rtmo-m_batch2.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e041829257279a83008cb64ba4cf651440a1f5ff7230e706f1b2bd112eb26725
|
3 |
+
size 89285038
|
rtmo-m_batch4.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ab10a9d4dfcc2936c5b83d91bd08b8c9197c66a701fe08eab02fdbae8c0fa950
|
3 |
+
size 89285206
|
rtmo-s.fp16.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:25c5f673bb64853f01f3b77c87a85d51dd85f53f95ddd11fbcf635166e0e0391
|
3 |
+
size 19869781
|
rtmo-s.fp16_batch1.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:41ae3d2acdff59090268ff1b29a1ece8c3575fd03cd4a14b49cb32d92f5d73f6
|
3 |
+
size 19858292
|
rtmo-s.fp16_batch2.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96a0e22e3f75956d1c4b72169e1cddf5c056ca9a91c365b34a8686c4affa4f64
|
3 |
+
size 19858388
|
rtmo-s.fp16_batch4.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a63dafe8a6316e337e1ce06e18db7f3a33ed56d077da7201eb7045bc5ed0239f
|
3 |
+
size 19858536
|
rtmo-s.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b8230d778ed547499b29a292d918bc2ee7164c2298934e48de43a2d879b79d21
|
3 |
+
size 39641192
|
rtmo-s_batch1.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:09d293ba5609b5c4adf081470a62d37cd5369c88082aecd75921b8f494bba156
|
3 |
+
size 39629766
|
rtmo-s_batch2.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f50db79ee81cd4b58432b6c0de40aaf094885a6e475e96732720305f3fc97854
|
3 |
+
size 39629872
|
rtmo-s_batch4.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f7ff522c8b2961e1d7ddd0041b6c6fda20d4924c9000825d4f858adbd2e4ba16
|
3 |
+
size 39630040
|
rtmo-t.fp16.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:227a75f6b5b954f05cf595d2171013b97a1b885c512985590d077ff599502cd6
|
3 |
+
size 13731720
|
rtmo-t.fp16_batch1.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7e33d21bbec8f2bab99bbd3da6ca8b66cb0c1b6aaac78eed3c948e968e100fb6
|
3 |
+
size 13720231
|
rtmo-t.fp16_batch2.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc0fb923e777aa561cc1153f6294496687a79e1ee5e70d5e3183da053a37c8a5
|
3 |
+
size 13720327
|
rtmo-t.fp16_batch4.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1358b2bc05359c7fe893bf5663b163e57912d8faf2ef14601d9df15dcb1576d5
|
3 |
+
size 13720475
|
rtmo-t.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c7fc5238621599251453bc250b4f3e76b7141e2413f32baa12d84cdff882617c
|
3 |
+
size 27365361
|
rtmo-t_batch1.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:43afc86380403d83ca018f038ec5d963c1fcb169a55052828f90d39354c9014e
|
3 |
+
size 27353935
|
rtmo-t_batch2.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0cb92d4011ab7e962d606c85a500098040b41406f7662c9ea8ed90c2654bfa09
|
3 |
+
size 27354041
|
rtmo-t_batch4.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:555b92f1b29d04109e9dcc55544bf94cfe5fddd85dd55201f04a09a8b91e3956
|
3 |
+
size 27354209
|