question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to build tfjs locally ?

See original GitHub issue

System information

  • OS Platform and Distribution: Linux Ubuntu 18.04

Describe the problem

  • I modified some files under directory of tfjs and tfjs-backend-webgl and I wanna build it. Is there a script to build tfjs ?
  • Do I have to add a new webpack and add some rules there?

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
vladmandiccommented, Feb 26, 2021

not an official way, but my quick hack:

git clone --depth 1 https://github.com/tensorflow/tfjs
cd tfjs
find . -maxdepth 1 -type d | while read d; do
  pushd $PWD
  cd $d
  if [ -f package.json ]; then
    yarn install --ignore-optional --ignore-engines
  fi
  popd
done

cd ./tfjs
yarn run build-deps
yarn run build
yarn run build-npm

cd ../tfjs-node
yarn run build-npm

cd ../tfjs-node-gpu
./prep-gpu.sh
yarn run build-npm

cd ../tfjs-backend-webgpu
yarn run build-npm
0reactions
google-ml-butler[bot]commented, Mar 11, 2021

Are you satisfied with the resolution of your issue? Yes No

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setup | TensorFlow.js
Node.js Setup ... You can use either the npm cli tool or yarn to install TensorFlow.js. Option 1: Install TensorFlow.js with native C++...
Read more >
A practical guide on using TensorFlow.js models in offline ...
The challenge with offline applications explained. The first thing most people will try is to create a simple HTML / JS bundle and...
Read more >
Setting up a TensorFlow.js Development Environment - GitBook
1. Create a new file in the Visual Studio Code IDE by right-clicking a folder in the Explorer pane, and select New File...
Read more >
Load Tensorflow js model from local file system in javascript
create a directory static in your app and put your model there. load that static directory to the template where you want to...
Read more >
How to set up Tensorflow.js for machine learning in your ...
The code you develop locally is the same code you'll be able to ship to your users to ... import { util, tensor2d...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found