Skip to main content

Simple ONNX operation generator. Simple Operation Generator for ONNX.

Project description

[WIP] sog4onnx

Simple ONNX operation generator. Simple Operation Generator for ONNX.

https://github.com/PINTO0309/simple-onnx-processing-tools

Downloads GitHub PyPI CodeQL

Key concept

  • Variable, Constant, Operation and Attribute can be generated externally.
  • Allow Opset to be specified externally.
  • No check for consistency of Operations within the tool, as new OPs are added frequently and the definitions of existing OPs change with each new version of ONNX's Opset.
  • Only one OP can be defined at a time, and the goal is to generate free ONNX graphs using a combination of snc4onnx, sne4onnx, snd4onnx and scs4onnx.
  • List of parameters that can be specified: https://github.com/onnx/onnx/blob/main/docs/Operators.md

6. Sample

$ sog4onnx \
--op_type Gemm \
--opset 1 \
--input_variables i1 float32 [1,2,3] \
--input_variables i2 float32 [1,1] \
--input_variables i3 int32 [0] \
--output_variables o1 float32 [1,2,3] \
--attributes "{\"alpha\": 1.0, \"beta\": 1.0, \"broadcast\": 0, \"transA\": 0, \"transB\": 0}" \
--non_verbose

image image

7. Reference

  1. https://docs.nvidia.com/deeplearning/tensorrt/onnx-graphsurgeon/docs/index.html
  2. https://github.com/NVIDIA/TensorRT/tree/main/tools/onnx-graphsurgeon
  3. https://github.com/PINTO0309/sne4onnx
  4. https://github.com/PINTO0309/snd4onnx
  5. https://github.com/PINTO0309/snc4onnx
  6. https://github.com/PINTO0309/scs4onnx
  7. https://github.com/PINTO0309/PINTO_model_zoo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sog4onnx-0.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sog4onnx-0.0.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file sog4onnx-0.0.2.tar.gz.

File metadata

  • Download URL: sog4onnx-0.0.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for sog4onnx-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ed9e827ea0cb15958e999633668406e69f1883b965d46ccf4bd35e1b63687355
MD5 b5f667054b81baf65991c77b0375eeaa
BLAKE2b-256 4bdb8baa677a0f39bf437dd5915d28a0d1d8287ecaccba464c30144ddd166ae9

See more details on using hashes here.

File details

Details for the file sog4onnx-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sog4onnx-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for sog4onnx-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d288871bcc74a72784fe171a475351bfb7777e2178e37f39cbfc5e37f12c4178
MD5 703bf1cf3703f550d10c0b1b3a65af4d
BLAKE2b-256 59aa14c720d484b4a65f50d5b318d242075e159866088216b42aa366a73ab54e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page