spox icon indicating copy to clipboard operation
spox copied to clipboard

Pythonic framework for building ONNX graphs

Results 12 spox issues
Sort by recently updated
recently updated
newest added

Solves #140 # Checklist - [x] Added a `CHANGELOG.rst` entry

The described error can be reproduced with the following example: ```python import spox.opset.ai.onnx.v19 as op19 import spox.opset.ai.onnx.v18 as op18 from spox import Tensor, Var, argument, build import onnx import numpy...

The [current naming algorithm](https://github.com/Quantco/spox/blame/main/src/spox/_scope.py#L121) is defined as: ```python def enum(self, base: str, suffix: str = "_{}") -> str: """Find an unused name by enumerating the pattern ``base + suffix.format(i)`` through...

performance

Currently, attributes are built (i.e. passed to `onnx.helper.make_attribute`) 3-4 times, on: - Validation when initializating - Running type inference (1.) and possibly value propagation (2.) - Building For very large...

performance

`inline` is currently missing: - [x] Support for subgraphs (they should get prefixed properly, which ONNX renaming doesn't do) - [ ] Support for functions (such local/dependency functions should be...

bug

There are some parts of the standard that we don't yet support or we can't test due to their limited usage, but it would be a good idea to write...

onnx
future
enhancement

This is a feature idea that comes up in alternative libraries. It would be useful to be able to express things like `op.add(x, 1)` or even `op.reshape(x, [-1, 2])` without...

opset
proposal

Fixes #163 # Checklist - [x] Added a `CHANGELOG.rst` entry

### (v17) Custom inference fails when inputs and outputs of the body have mismatched shapes. The following code should generate a loop that produces a tensor `[1 1 1 1...

We are releasing ONNX 1.18.0. A release branch is created (https://github.com/onnx/onnx/tree/rel-1.18.0). Release candidates are also available from TestPyPI: `pip install -i https://test.pypi.org/simple/ --pre onnx` Updates to op-list and other key...