Tech Tree of the Web

The history of web technology, 1945 to now: 112 ideas and the lines between them. Drag, scroll or press ← → to travel. Open any one for its story.

No. 107 / 112Seen 0 / 112Colophon

The Present

TensorFlow.js, 2018. Era VI, The Present.

Era VI · 2017–2026

← drag · scroll · arrow keys →

2018tfconst model = tf.sequential();model.add(tf.layers.dense({ units: 1, inputShape: [1]}));model.compile({ loss: 'meanSquaredError', optimizer: 'sgd' });

A neural network defined and trained inside the browser tab. Typeset for this timeline: no licence-clean photograph of the thing itself was found.

Key details

When
2018 (blog post 30 March)
Who
Daniel Smilkov, Nikhil Thorat and colleagues, Google
Where
Google
Answered
It answered the need for a server or Python by training and running models in JavaScript in the browser.
Led to
It brought JavaScript developers to machine learning and enabled on-device models in browsers and Node.js.

No. 107 · 2018 · Machine learning · Era VI, The Present

TensorFlow.js

Trained and ran neural networks in the browser on the GPU through WebGL, in plain JavaScript.

Facts

  1. Google's TensorFlow blog introduced TensorFlow.js on March 30, 2018. 1
  2. TensorFlow.js succeeded deeplearn.js, which became TensorFlow.js Core. 1
  3. It used WebGL automatically to accelerate code when a GPU was available. 1
  4. It could import TensorFlow SavedModels and Keras models. 1
  5. A 2019 paper by Smilkov, Thorat and 18 coauthors described it running in web browsers and in Node.js. 2

Quirks

  • An early demo turned a webcam into a controller for PAC-MAN. 1

Sources

  1. TensorFlow Blog, "Introducing TensorFlow.js", March 2018
  2. Smilkov et al., "TensorFlow.js: Machine Learning for the Web and Beyond", arXiv:1901.05350
Came from
Led to
Nothing on this tree yet