Skip to content

Releases: PINTO0309/sog4onnx

1.0.17

30 Apr 06:22
cbd28bd
Compare
Choose a tag to compare
  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

Full Changelog: 1.0.16...1.0.17

1.0.16

24 Jun 05:58
ccaaa51
Compare
Choose a tag to compare
  • 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

What's Changed

  • Supports OP generation for TensorRT Plugin by @PINTO0309 in #3

New Contributors

Full Changelog: 1.0.15...1.0.16

1.0.15

20 Nov 16:06
Compare
Choose a tag to compare
  • Fixed a bug where Constant and ConstantOfShape opsets were not set

Full Changelog: 1.0.14...1.0.15

1.0.14

08 Sep 11:14
Compare
Choose a tag to compare
  • 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

10 Jun 13:09
Compare
Choose a tag to compare
  • Support for inf or -inf or infinity or -infinity to attributes

1.0.12

07 Jun 11:31
Compare
Choose a tag to compare
  • string attributes bug fixes

1.0.11

25 May 06:39
bc314df
Compare
Choose a tag to compare
  • Security update
  • README update

1.0.10

15 May 13:13
Compare
Choose a tag to compare
  • eval() -> ast.literal_eval()

1.0.9

26 Apr 11:22
Compare
Choose a tag to compare
  • Added op_name as an input parameter, allowing OPs to be named.
    • CLI
      sog4onnx [-h]
        --op_type OP_TYPE
        --opset OPSET
        --op_name OP_NAME
        [--input_variables NAME TYPE VALUE]
        [--output_variables NAME TYPE VALUE]
        [--attributes NAME DTYPE VALUE]
        [--output_onnx_file_path OUTPUT_ONNX_FILE_PATH]
        [--non_verbose]
    • In-script
      generate(
        op_type: str,
        opset: int,
        op_name: str,
        input_variables: dict,
        output_variables: dict,
        attributes: Union[dict, NoneType] = None,
        output_onnx_file_path: Union[str, NoneType] = '',
        non_verbose: Union[bool, NoneType] = False
      ) -> onnx.onnx_ml_pb2.ModelProto

1.0.8

15 Apr 11:50
f6e258a
Compare
Choose a tag to compare