microsoft / onnxjs

ONNX.js: run ONNX models using JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Formator for pre-commit (PR Help)

joey00072 opened this issue · comments

I am tring to ass selu operator

test/data/ops/xor.jsonc 6ms
test/test-suite-whitelist.jsonc 21ms
ERR! pre-commit File(s) not formatted:
ERR! pre-commit lib/backends/cpu/ops/unary-op.ts
npm ERR! code ELIFECYCLE
npm ERR! errno 1

I am getting this error wihile running npm npm run pre-commit with I have already used default vscode code formater,
which code formater should I use.

Hi @joey00072, you need the clang-format to format your ts code. Instructions are here.


Currently we are working on migrating ONNX.js to ONNX Runtime Web which offers enhanced user experience and improved performance. Please visit ONNX Runtime Web to get more details.