- Added `op_name` as an input parameter, allowing OPs to be named.
- CLI
bash
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
python
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