onnxruntime-web bug, who can solve this problem, dear friends #12620
Unanswered
yufengyao-lingoace
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear friends, Who can solve this problem?
self.b1, self.b2, self.b3, self.b4 are sublayers of mobilenetv3.
(1)slow when return f1,f2,f3,f4
def forward(self, x):
f1 = self.b1(x)
f2 = self.b2(f1)
f3 = self.b3(f2)
f4 = self.b4(f3)
return f1,f2,f3,f4
when I return f1,f2,f3,f4 , the onnx used in chrome is very slow. (ort.min.js using wasm or webgl)
(2) fast when return f4
def forward(self, x):
f1 = self.b1(x)
f2 = self.b2(f1)
f3 = self.b3(f2)
f4 = self.b4(f3)
return f4
when I only return f4 , the onnx used in chrome is very fast. (ort.min.js using wasm or webgl)
but in normal , the two way should be the same time
Beta Was this translation helpful? Give feedback.
All reactions