MATLAB Answers

0

why exportONNXNetwork will add additional "Sub" in onnx, how to remove this layer in onnx?

Asked by owen chang on 4 Sep 2019
Latest activity Answered by Don Mathis on 9 Sep 2019
Hi, i did the following:
>> baseNetwork = resnet50;
>> exportONNXNetwork(baseNetwork,'resnet50-matlab');
but when compare same model in Deep Network Designer and Netron (onnx reader), i found there is additional "Sub" in generated onnx
resnet50-matlab.JPG
then i download the official resnet50 from onnx github, there are no "Sub"
resnet50-github.JPG
this Sub will cause some issue in my enviroment, how to remove it? also is it a bug or why this Sub exist? thanks
Regards,
Owen

  1 Comment

(restored from spam filter)

Sign in to comment.

Tags

Products


Release

R2019a

1 Answer

Answer by Don Mathis on 9 Sep 2019

The Sub operator is subtracting the mean image from the raw image input.

  0 Comments

Sign in to comment.