Sog4onnx

Latest version: v1.0.17

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

Scan your dependencies

Page 1 of 4

1.0.17

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
* Fix to preserve domain and ir_version by PINTO0309 in https://github.com/PINTO0309/sog4onnx/pull/4


**Full Changelog**: https://github.com/PINTO0309/sog4onnx/compare/1.0.16...1.0.17

1.0.16

- Supports OP generation for TensorRT Plugin.
- Support for `bool`
- OPs with `_TRT` at the end of OP Type are now skipped from checking by ONNX.

![image](https://github.com/PINTO0309/sog4onnx/assets/33194443/1ea81f92-affc-4227-b913-acd4df849f48)

What's Changed
* Supports OP generation for TensorRT Plugin by PINTO0309 in https://github.com/PINTO0309/sog4onnx/pull/3

New Contributors
* PINTO0309 made their first contribution in https://github.com/PINTO0309/sog4onnx/pull/3

**Full Changelog**: https://github.com/PINTO0309/sog4onnx/compare/1.0.15...1.0.16

1.0.15

- Fixed a bug where `Constant` and `ConstantOfShape` opsets were not set

**Full Changelog**: https://github.com/PINTO0309/sog4onnx/compare/1.0.14...1.0.15

1.0.14

- Add short form parameter

$ sog4onnx -h

usage: sog4onnx [-h]
--ot OP_TYPE
--os OPSET
--on OP_NAME
[-iv NAME TYPE VALUE]
[-ov NAME TYPE VALUE]
[-a NAME DTYPE VALUE]
[-of OUTPUT_ONNX_FILE_PATH]
[-n]

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

-ot OP_TYPE, --op_type OP_TYPE
ONNX OP type.
https://github.com/onnx/onnx/blob/main/docs/Operators.md

-os OPSET, --opset OPSET
ONNX opset number.

-on OP_NAME, --op_name OP_NAME
OP name.

-iv INPUT_VARIABLES INPUT_VARIABLES INPUT_VARIABLES, --input_variables INPUT_VARIABLES INPUT_VARIABLES INPUT_VARIABLES
input_variables can be specified multiple times.
--input_variables variable_name numpy.dtype shape
https://github.com/onnx/onnx/blob/main/docs/Operators.md

e.g.
--input_variables i1 float32 [1,3,5,5] \
--input_variables i2 int32 [1] \
--input_variables i3 float64 [1,3,224,224]

-ov OUTPUT_VARIABLES OUTPUT_VARIABLES OUTPUT_VARIABLES, --output_variables OUTPUT_VARIABLES OUTPUT_VARIABLES OUTPUT_VARIABLES
output_variables can be specified multiple times.
--output_variables variable_name numpy.dtype shape
https://github.com/onnx/onnx/blob/main/docs/Operators.md

e.g.
--output_variables o1 float32 [1,3,5,5] \
--output_variables o2 int32 [1] \
--output_variables o3 float64 [1,3,224,224]

-a ATTRIBUTES ATTRIBUTES ATTRIBUTES, --attributes ATTRIBUTES ATTRIBUTES ATTRIBUTES
attributes can be specified multiple times.
dtype is one of "float32" or "float64" or "int32" or "int64" or "str".
--attributes name dtype value
https://github.com/onnx/onnx/blob/main/docs/Operators.md

e.g.
--attributes alpha float32 1.0 \
--attributes beta float32 1.0 \
--attributes transA int32 0 \
--attributes transB int32 0

-of OUTPUT_ONNX_FILE_PATH, --output_onnx_file_path OUTPUT_ONNX_FILE_PATH
Output onnx file path.
If not specified, a file with the OP type name is generated.

e.g. op_type="Gemm" -> Gemm.onnx

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

1.0.13

- Support for `inf` or `-inf` or `infinity` or `-infinity` to attributes

1.0.12

- `string` attributes bug fixes

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.