You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have successfully run the network getting the results in the result_mvae folder. I would like to export the model into other deep learning frameworks (i.e. TensorFlow). Particularly I tried to do it through onnx_chainer.export with the following:
x = np.zeros(1,7,128,128, type=np.float32)
onnx_chainer.export(model, x, filename='export.onnx')
where model is from net.Conv_MVAE
Unfortunately I get the following error:
incompatible array mixed in the forward'sd input (Concat)
Actual: <class 'numpy.ndarray'>, <class 'copy.core.core.ndarray>
I tried also to change x as cupy.zeros((1,7,128,128), type=cupy.float32) but I still get similar error
The text was updated successfully, but these errors were encountered:
Unfortunately I don't have much experience with onnx and exporting models like this. From what I can see in your message above, some of the concats we are doing in the forward pass fail, potentially because we are concatenating cupy with bumpy arrays. Notice that in the spatial decoding step, the xy tiled 1s are defined as a cupy array.
Is the message above the full error trace and is the message different when you initialise X as a copy array or exactly the same?
Hello,
I have successfully run the network getting the results in the result_mvae folder. I would like to export the model into other deep learning frameworks (i.e. TensorFlow). Particularly I tried to do it through onnx_chainer.export with the following:
x = np.zeros(1,7,128,128, type=np.float32)
onnx_chainer.export(model, x, filename='export.onnx')
where model is from net.Conv_MVAE
Unfortunately I get the following error:
incompatible array mixed in the forward'sd input (Concat)
Actual: <class 'numpy.ndarray'>, <class 'copy.core.core.ndarray>
I tried also to change x as cupy.zeros((1,7,128,128), type=cupy.float32) but I still get similar error
The text was updated successfully, but these errors were encountered: