Using function-operators in a runtime #4709
Unanswered
jbachurski
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the intended way of using operators defined as functions (i.e. having a function body or having a way to build one)?
The case of static function bodies seems simple enough, but I'm not sure how one would use a context dependent function builder.
LeakyRelu static function body:
onnx/onnx/defs/math/defs.cc
Lines 333 to 343 in 45f508b
CastLike with a context-dependent function builder:
onnx/onnx/defs/tensor/defs.cc
Lines 189 to 201 in 45f508b
Are there utilities exposed to 'expand' operators into their function bodies? With static function bodies we could just add them to the
functions
field in ModelProto, but what about the context-dependent function builders, which may expand the same operator name/domain into different functions? Are they still really functions in the ONNX sense?Beta Was this translation helpful? Give feedback.
All reactions