- sam4onnx 1.0.9 https://github.com/PINTO0309/sam4onnx
- Support for constant rewriting when the same constant is shared. Valid only when `op_name` is specified. Generates a new constant that is different from the shared constant.
- `Reshape_156 onnx::Reshape_391 int64 [1, -1, 85]`
![image](https://user-images.githubusercontent.com/33194443/179403146-c0cc9881-29c2-485d-904a-31b976cd7ac2.png)
- `Reshape_174 onnx::Reshape_391 int64 [1, -1, 85]`
![image](https://user-images.githubusercontent.com/33194443/179403184-9f3cbf0e-582a-4e58-81a8-7ae4cbb140c2.png)
bash
sam4onnx \
--input_onnx_file_path yolov7-tiny_test_sim.onnx \
--output_onnx_file_path yolov7-tiny_test_sim_mod.onnx \
--op_name Reshape_156 \
--input_constants onnx::Reshape_391 int64 [1,14400,85]
- `Reshape_156 onnx::Reshape_391 int64 [1, -1, 85]` -> `Reshape_156 onnx::Reshape_391_mod_3 int64 [1, 14400, 85]`
![image](https://user-images.githubusercontent.com/33194443/179403335-0137bcb4-5186-426f-8afe-ab0feef73e30.png)
- `Reshape_174 onnx::Reshape_391 int64 [1, -1, 85]`
![image](https://user-images.githubusercontent.com/33194443/179403354-e6fbd739-87ed-4b3b-9b7d-1ebf42414c34.png)