microsoft / onnxjs

ONNX.js: run ONNX models using JavaScript
Other
1.75k stars 130 forks source link

Formator for pre-commit (PR Help) #315

Closed joey00072 closed 2 years ago

joey00072 commented 2 years ago

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.

fs-eire commented 2 years ago

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.