-
Notifications
You must be signed in to change notification settings - Fork 129
TypeError: unrecognized operator 'Pad' #138
Comments
There is another problem. Because of lacking pad operator, I download the squeezenet model from the model zoo. Then loadModel succeeded, but the output of the model is undefined.
and the console result is |
Thanks for the feedback. It looks like currently operator |
Hi, @fs-eire Sorry to bother you, I really appreciate your reply. Thank you |
@Kirayue ONNX.js will resolve the backend according to
The resolve will succeed when the first available backend is initialized successfully.
This looks the session is created successfully. It is not an empty object -- although you cannot see its members. It's a Node.js native binding so it works if you call |
@fs-eire, thank you for your explanations. If I want to use
You are right, but I called |
you should use |
Ok, it works. thank you for your help. My purpose is to deploy my model using |
the error message JavaScript's Inside onnxjs, all int64/uint64 intermedia tensors will be treated as int32/uint32, assuming no overflow happened. However, onnxjs-node does not allow int64/uint64 as model outputs, thus the error occurred. possible solutions(model): avoid use of int64/uint64, use int32/uint32 instead |
Got it, thank you @fs-eire I will modify the model and rerun again. |
Hi, @fs-eire |
|
Hi, I got a problem while loading model using onnx.js. Is there any way to solve this error?
Also, I got these two at the same time
w WebGLBackend 2019-04-19T09:24:13.803Z|Unable to initialize WebGLBackend. ReferenceError: document is not defined
e WebAssembly-Workers 2019-04-19T09:24:13.808Z|Environment does not support usage of Workers. Will not spawn workers.
I ran two lines of code in the node v8.10.0
const session = new onnx.InferenceSession();
session.loadModel('model.onnx')
the onnx file is here.
BTW, I can load it using onnxruntime.
The text was updated successfully, but these errors were encountered: