-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template generator frontend #86
base: master
Are you sure you want to change the base?
Conversation
- added a few new list/skip/force options to the generator
93ef504
to
5a5d362
Compare
@Coderitter-GmbH |
Love the idea. I'm getting an error with: $ ./gen_template.sh ai.onnx Log 1
find: -printf: unknown primary or operator
usage: onnx_generator [-h] [-v] [-f] [--list-domains] [--list-operators] [--list-versions] [--skip-pattern SKIP_PATTERN [SKIP_PATTERN ...]] [--force-pattern FORCE_PATTERN [FORCE_PATTERN ...]]
[--force-header] [--force-resolve] [--force-sets] [--force-template] [--force-info] [-n] [--no-header] [--header <path>] [--no-resolve] [--resolve <path>] [--no-sets]
[--sets <path>] [--no-template] [--template <path>] [--no-info] [--info <path>] [--domains <domain> [<domain> ...]] [--version <version>] [-i <regex> [<regex> ...]]
[-e <regex> [<regex> ...]]
[--] <path> Aside from that, looks good. |
It works for me so far. The only thing I have to complain, is that it is a bit slow. |
meh. I assume this is a difference in the |
It takes about 3 seconds on my laptop. How long does take on your side? |
It is true that 4 seconds are not a huge deal. I just didn't expected it and thought, that the script might be hanging. I was to impatient. And I found an other little problem: Linux (or at least ubuntu) uses python3 instead python. Sure I can create a system link but that's not the default way as far i know. |
it runs the generator multiple times that loads the whole onnx operator set description each time, runs a ton of regex etc etc. It's more a beast than a beauty :D
|
was a typo, fixed it |
@alrevuelta fixed it, can you try again? |
For convTranspose it generates 4 execute c files:
What is the purpose of execute_operator__ai_onnx__convtranspose__11.c or is that a bug? [nopeslide: sorry I accidentally edited your post] |
This executer is not referenced by the code generator atm. @alrevuelta what do you think about using the "typeless" function as the default function if no type specific one can be found? |
Yep, I agree. I suggested to wait a bit until we are sure that the generated files are what we need and that we are not missing anything. But if you are sure about it feel free to generate all of them. It would definitely help newcomers and we would need to call this script only when onnx releases a new opset. ./gen_template.sh ai.onnx OneHot 11
All good, working fine now on mac thanks :D
You call "typeless" function to |
yes exactly.
fair point, can't come up with a good example, but will try. have the feeling it may be useful in some cases. |
I added a frontend for the onnx generator to make adding new operators as simple as possible.
usage example: