-
Notifications
You must be signed in to change notification settings - Fork 6.8k
symbol.contrib.cond does not support custom operator execution #16187
Comments
Was this ever resolved or was a work around ever found? |
You can consider trying https://github.com/apache/incubator-mxnet/tree/83797400128d41910d87e957131f29fd466f4777/example/extensions/lib_custom_op instead of the Python-level custom operator. But I'm not sure if it has been tested with conditional operator yet. |
Heres the full stack trace from the given example on v1.8 MX:
Its failing in the MXNet Python Custom Op, but on the C++ side here: https://github.com/apache/incubator-mxnet/blob/v1.x/src/operator/custom/custom.cc#L106 after it calls back into Python here: https://github.com/apache/incubator-mxnet/blob/v1.x/python/mxnet/operator.py#L733 |
Simple fix seems to be adding
Now it works and prints:
So the question is, how/why is |
That does look like the issue we're having. I'll try that workaround. Thanks! |
Description
symbol.contrib.cond
operator does not support custom operator execution.Environment info (Required)
I'm using Pyton
Build info (Required if built from source)
N/A
Error Message:
Minimum reproducible example
Steps to reproduce
Run code above
What have you tried to solve it?
I suspect it has something to do with custom operators being executed imperatively (?)
Might be related to #12154 , #11641 and #16182 .
*I'm not sure that the custom operator implementation is not missing something, I attached an example with simple identity custom operator (which doesn't work).
The text was updated successfully, but these errors were encountered: