fs-eire / onnxruntime-node

Node.js binding for onnxruntime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API review - FAQ and feedbacks

fs-eire opened this issue · comments

This thread is for API review. Will keep update this thread for FAQ and feedbacks.

FAQ

Q: Why use loadModel(filePath) instead of loading model in constructor (like python/C# binding)?
A: a class constructor cannot be made async. We want to support real async in future, so cannot load model in constructor. instead, we use an async function loadModel().

[to be updated]