Skip to content

Export the model through Onnx #4

Description

@TommasoBendinelli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions