フィルターのクリア

How to use importONNXfunction in GPU environment?

5 ビュー (過去 30 日間)
SeungHyun Jang
SeungHyun Jang 2021 年 6 月 14 日
コメント済み: cui,xingxing 2021 年 8 月 3 日
I can't find the way to use importONNXfunction to use it at the gpu enviroment.
This is the code:
parallel.gpu.enableCUDAForwardCompatibility(true)
I = gpuArray(I);
params = importONNXFunction(modelfile,'UNet177Fcn');
result = UNet184Fcn(I,params,'Training',false);
when I change the input to the gpuarray, gpu works but the results going wrong.
there are so many placeholders to be replaced, so I think my model is more fit with the importONNXFunction.
So, is this the problem about the model? or just the importONNXfunction is doesn't fit with the gpu??
  1 件のコメント
cui,xingxing
cui,xingxing 2021 年 8 月 3 日
Upload your onnx file, and we will analyze it to know

サインインしてコメントする。

回答 (1 件)

Anshika Chaurasia
Anshika Chaurasia 2021 年 6 月 16 日
Hi,
I tried to use importONNXFunction to import a onnx file and it gave me correct results on passing gpuArray input. There is no issue of importONNXFunction with gpu environment. May be there is some issue in the model you are using.
Hope it helps!

カテゴリ

Help Center および File ExchangeParallel and Cloud についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by