Skip to content
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

convert squeezewave model to pytorch script for C++ inference. #7

Open
alokprasad opened this issue Mar 9, 2020 · 4 comments
Open

Comments

@alokprasad
Copy link

Any idea how to convert squeezewave model to pytorch script and relevant c++ code
for loading and inferencing from same.

@BohanZhai
Copy link
Collaborator

You might try to use the script used to convert torch to onnx provided for WaveGlow, I tried before but fail to convert the onnx to caffe2.

@chenht2021
Copy link

You might try to use the script used to convert torch to onnx provided for WaveGlow, I tried before but fail to convert the onnx to caffe2.

I try to export the model to onnx, but always got "of traced region did not have observable data dependence with trace inputs". Then I read the script used to convert torch to onnx provided for WaveGlow. I rewrite the script to handle squeezewave model, but failed. I think I mess the depthwise pointwise conv1d to conv2d. Can you give some suggestions?

@alokprasad
Copy link
Author

Yes, that's the problem with pytorch , models are very difficult to convert to onnx/caffe or torch script.
even if we are able to c/c++ code do not produces right output with that.

@turian
Copy link

turian commented Jan 6, 2021

@alokprasad why? Doesn't torch now have native methods to export ONNX models?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants