Files
wehub-resource-sync c8a779b1bb
Docker Image CI / build-ubuntu2004 (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:36:55 +08:00

1.0 KiB

Contributing To ONNX-GraphSurgeon

Contributing

  1. Create a separate branch for your feature or bug fix. You may want to create the branch on your own fork of the TensorRT OSS repository.

  2. Make your changes and add corresponding tests.

    The structure of the tests directory closely mirrors that of the main source directory (onnx_graphsurgeon), so in general, for every source file you change, you'll need to modify the corresponding test file.

    When adding new examples, be sure to add an entry in test_examples.py. The test will parse the README to execute any commands specified. If your example creates any additional files, specify each of them in the test case as an Artifact.

    If your changes are user-visible, make sure to update CHANGELOG.md.

  3. Run Tests:

    • Install prerequisite packages with:

      • python3 -m pip install -r tests/requirements.txt
      • python3 -m pip install -r docs/requirements.txt
    • Run tests with: make test

  4. Commit, push, and submit a merge request.