Justin Chu

Results 441 comments of Justin Chu

We will create a single constructor and allow only shape inference overrides instead

https://pybind11-jagerman.readthedocs.io/en/stable/advanced.html#custom-constructors

I wonder if the condition is statically known, do it’s subgraph need to be all valid?

Discussed with @gramalingam . We can use the new OptionalGetElement to solve this problem

That sounds right. Thanks! With the new OptionalGetElement I think we no longer have this problem because the graph will be valid?

https://onnx.ai/onnx/api/defs.html#onnx.defs.OpSchema.function_body

You may now use the https://github.com/onnx/onnx/blob/b590c5fef602d2ac2277c5b57c5818e976ce6d27/onnx/defs/schema.h#L1497 function starting from ONNX 1.16.