Representing unknown dims as a symbol ? #1259
alexander-camuto
started this conversation in
General
Replies: 1 comment
-
It actually sounds like a good idea. I'm gonna do some thinking :) In the meatime, and for everyone who reads this, the workaround is to force symbol introdction by doing
The future "python/rust unified" API will also accept facts in string form, just as the command line does (it's crate tract-rs, but it's not ready for prime-time yet). But yeah, I agree there may be value in having tract figuring it out on its own, at least for the trivial cases. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Have a small model exported from sklearn (for which it is hard to create symbolic dims etc...) and the variable batch dim is represented as unknown in onnx (
?
) -- this makes it hard to infill in tract as it isn't explicitly represented as a symbol. Setting?
to a value using the tract api doesn't work.Was wondering if it might make sense for the tract API to treat "?" as a symbol rather than as an unknown, such that models (such as the one zipped and attached) can compile.
network.onnx.zip
Beta Was this translation helpful? Give feedback.
All reactions