An open API service indexing awesome lists of open source software.

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

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