Conversation
…TE: this only supports 'mean' and 'sum' reductions
|
Thanks for writing this! Do you know what the speed difference might be between this and the native pytorch solution (w/o onnx)? Essentially, this is a native pytorch implementation of |
|
Hmm, would it be possible to just attempt to run the function and then fall back to the polyfill if there's an error? I see you suggested a try-except over the entire conversion process, but is it possible to just try-except the function itself? Alternatively, maybe there's a way to detect whether an onnx / jit trace is currently being performed instead of a normal forward pass, and set the flag then. |
@NatanBagrov, did you able to export model to ONNX format with ONNX friendly code? I am getting assertion error due to below line. |
Added onnx friendly merging
Also, together with a test for correctness. NOTE: this only supports 'mean' and 'sum' reductions
fixes #31