https://github.com/paradite/tfjs-hermes-bug
https://github.com/paradite/tfjs-hermes-bug
bug hermes metro react-native reproduction tfjs
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paradite/tfjs-hermes-bug
- Owner: paradite
- Created: 2022-06-12T04:15:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-02T16:48:05.000Z (over 2 years ago)
- Last Synced: 2025-02-06T11:33:54.110Z (about 1 year ago)
- Topics: bug, hermes, metro, react-native, reproduction, tfjs
- Language: JavaScript
- Homepage: https://github.com/tensorflow/tfjs/issues/6526
- Size: 2.67 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tfjs hermes bug
For issues:
- https://github.com/tensorflow/tfjs/issues/5972
- https://github.com/tensorflow/tfjs/issues/6526
- https://github.com/tensorflow/tfjs/issues/7056
## Reproduction
- Install dependencies with `yarn` (it is not necessary to setup tfjs git submodule)
- Run `npm run tfjs:node`
- Runs tfjs code with Node.js
- Prints "result 2" without error
- Run `npm run tfjs:buildrun`
- Bundles tfjs code with Metro
- Runs tfjs code with Hermes
- Gives the error "Uncaught Error: Argument 'x' passed to 'argMax' must be a Tensor or TensorLike, but got 'e'"
We can probably get more readable build output by tweaking the metro config.
## Hermes binary
https://github.com/facebook/hermes/releases/tag/v0.11.0