-
Notifications
You must be signed in to change notification settings - Fork 965
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
I want you to help me! ! The MXNet-Gluon network got an error. #208
Comments
Hi @ys-yamashita , |
Thank you for your reply. Does "source_node.name.replace" need to be inserted somewhere in convertToIR.py? |
eg. change weight = self.weight_data.get(source_node.name + "_weight").asnumpy() to weight = self.weight_data.get(source_node.name.replace("fwd", "weight")).asnumpy() I have tried and got a (32, 3, 3, 3) weight matrix, it's right. |
Thank you for your advice. Follow "weight"
An error occurred in the if statement
source_node.type is confirmed by print () "relu" "relu" is used within hybrid_foward(MXNet-Gluon)
I do not know what to do. Help me |
Yes, you've got this! You also need to change some code in mxnet_parser:
def rename_relu(self, source_node):
self._convert_identity_operation(source_node, new_op="Relu")
def rename_Reshape(self, source_node):
self.rename_Flatten(source_node)
|
Thank you very much. I was able to create an IR. Appreciation |
Hello, I have another problem. How did you solve it
|
I have the same issue; I have not understood what is the second step. After adding methods rename_relu, rename_Reshape, what should i do? |
Hi @simomagi , MMdnn has not supported the operator 'clip' in mxnet model, we will add this operator in the future. |
Platform: Ubuntu 16.04.4 LTS
Python version: Python 3.6.4(Anaconda)
Source framework with version : MXNet 1.0.0 (GPU)
Destination framework with version: IR (I will convert it to Tensorflow code after that)
Pre-trained model path: https://github.com/ys-yamashita/mxnet_gluon
Running scripts: MMdnn/mmdnn/conversion/_script/convertToIR.py
*The executed command
The python code that created the model uses Gluon HybridBlocks.
I think that it is probably caused by the fact that the symbol name has the suffix "_fwd" as its origin.
It is reference page of Gluon HybridBlocks
https://gluon.mxnet.io/chapter07_distributed-learning/hybridize.html
Can I convert it to IR?
Help me.
The text was updated successfully, but these errors were encountered: