Sor4onnx

Latest version: v1.0.5

Safety actively analyzes 621688 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.5

- Supoort for `search_mode` option


-sm {exact_match,partial_match,prefix_match,suffix_match}
--search_mode {exact_match,partial_match,prefix_match,suffix_match}

OP name search mode.
exact_match or partial_match or prefix_match or suffix_match.
exact_match: Exact match search for OP name.
partial_match: Partial match search for OP name.
prefix_match: Prefix match search for OP name.
suffix_match: Suffix match search for OP name.
Default: exact_match

1.0.4

- Add short form soc4onnx

$ sor4onnx -h

usage:
sor4onnx [-h]
-if INPUT_ONNX_FILE_PATH
-on OLD_NEW OLD_NEW
-of OUTPUT_ONNX_FILE_PATH
[-m {full,inputs,outputs}]
[-n]

optional arguments:
-h, --help
show this help message and exit.

-if INPUT_ONNX_FILE_PATH, --input_onnx_file_path INPUT_ONNX_FILE_PATH
Input onnx file path.

-on OLD_NEW OLD_NEW, --old_new OLD_NEW OLD_NEW
All occurrences of substring old replaced by new.
e.g. --old_new "onnx::" ""

-of OUTPUT_ONNX_FILE_PATH, --output_onnx_file_path OUTPUT_ONNX_FILE_PATH
Output onnx file path.

-m {full,inputs,outputs}, --mode {full,inputs,outputs}
Specifies the type of node to be replaced.
full or inputs or outputs.
full: Rename all nodes.
inputs: Rename only the input node.
outputs: Rename only the output node.
Default: full

-n, --non_verbose
Do not show all information logs. Only error logs are displayed.

1.0.3

- opname auto supplementation
- OPs in old ONNX files may be missing opname, so opname is automatically completed when opname is empty.
- opname: `f'sor_{graph_node.op}_{supplementation_idx}'`

- Model without opname
![image](https://user-images.githubusercontent.com/33194443/186885157-78011d89-f6af-4397-97fb-dbafb16611d1.png)

- Model with auto-completion of opname in sor4onnx
![image](https://user-images.githubusercontent.com/33194443/186885373-67edb006-7e44-4800-bab3-0444ecf3bc65.png)

1.0.2

- Security update
- README update

1.0.1

- Added Rename `mode`
python
mode: Optional[str]
Specifies the type of node to be replaced.
full or inputs or outputs.

full: Rename all nodes.
inputs: Rename only the input node.
outputs: Rename only the output node.

Default: full

1.0.0

- Initial release

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.