sor4onnx

Simple OP Renamer for ONNX.

MIT License

Downloads
1.5K
Stars
5

Bot releases are hidden (Show)

sor4onnx - 1.0.7 Latest Release

Published by PINTO0309 5 months ago

  • Retention of metadata_props

What's Changed

Full Changelog: https://github.com/PINTO0309/sor4onnx/compare/1.0.6...1.0.7

sor4onnx - 1.0.6

Published by PINTO0309 6 months ago

  1. Fix to preserve domain and ir_version.
  2. API specification changes due to the version upgrade of onnx are now supported. onnx==1.16.0

What's Changed

New Contributors

Full Changelog: https://github.com/PINTO0309/sor4onnx/compare/1.0.5...1.0.6

sor4onnx - 1.0.5

Published by PINTO0309 about 2 years ago

  • 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
sor4onnx - 1.0.4

Published by PINTO0309 about 2 years ago

  • 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.
    
sor4onnx - 1.0.3

Published by PINTO0309 about 2 years ago

  • 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

  • Model with auto-completion of opname in sor4onnx
    image

sor4onnx - 1.0.2

Published by PINTO0309 over 2 years ago

  • Security update
  • README update
sor4onnx - 1.0.1

Published by PINTO0309 over 2 years ago

  • Added Rename mode
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
sor4onnx - 1.0.0

Published by PINTO0309 over 2 years ago

  • Initial release
Package Rankings
Top 13.72% on Pypi.org
Badges
Extracted from project README
Downloads PyPI CodeQL
Related Projects