Skip to content

Commit

Permalink
Upgrade some Node examples to 0.3.1; Fix various code and doc issues (t…
Browse files Browse the repository at this point in the history
…ensorflow#241)

Additional fixes
- Fix lstm-text-generation/data.js
- Fix a typo in simple-object-detection/train.js
- Fill in some unfinished sections of date-conversion-attention/README.md
  • Loading branch information
caisq authored Mar 2, 2019
1 parent 907e543 commit 7702e3e
Show file tree
Hide file tree
Showing 16 changed files with 179 additions and 248 deletions.
29 changes: 27 additions & 2 deletions date-conversion-attention/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# TensorFlow.js Example: Date Conversion Through an LSTM-Attention Model

[See this example live!](https://storage.googleapis.com/tfjs-examples/date-conversion-attention/dist/index.html)

## Overview

This example shows how to use TensorFlow.js to train a model based on
Expand Down Expand Up @@ -37,11 +39,34 @@ yarn train --gpu

## Using the model in the browser

TODO(cais): Implement it.
To see the trained model in action in the browser, do:

```sh
yarn
yarn watch
```

### Visualization of the attention mechanism

TODO(cais): Implement it.
In the page opened by the `yarn watch` command, you can generate
random input date strings by clicking the "Random" button. A converted
date string will appear in the output text box each time a new input
date string is entered. You may also manually enter a date in the input-date
box. But make sure that the date falls into a range between the years 1950
and 2050, as this is the range of dates that the model is trained on.
See [date_format.js](./date_format.js) for more details.

In addition to converting the date and showing the output, the page visualizes
the attention matrix used by the trained model to convert the input date string
to the output one in (e.g., see the image below).

![Attention Matrix](./attention_matrix.png)

Each column of the attention matrix corresponds to a character in the input
string and each column corresponds to a character in the output string.
A darker color in a cell of the attention matrix
indicates a greater attention paid by the model to the corresponding input
character when generating the corresponding output character.

## Running unit tests

Expand Down
Binary file added date-conversion-attention/attention_matrix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions date-conversion-attention/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@tensorflow/tfjs-vis": "^0.5.0"
},
"devDependencies": {
"@tensorflow/tfjs-node": "^0.3.0",
"@tensorflow/tfjs-node-gpu": "^0.3.0",
"@tensorflow/tfjs-node": "^0.3.1",
"@tensorflow/tfjs-node-gpu": "^0.3.1",
"argparse": "^1.0.10",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
Expand Down
70 changes: 11 additions & 59 deletions date-conversion-attention/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -704,15 +704,6 @@
resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570"
integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=

"@tensorflow/[email protected]":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-converter/-/tfjs-converter-0.8.1.tgz#baecc2dd20e5fca81391df1c6f11a7e865c71ce9"
integrity sha512-tdUq5N6y+L9XUM6c9poAP9GAAkzh9XEtP/mD96nFxllpNeDODSmDkdZKFzoAkmXwubojcUSJ1wbVYqCFbgaCOg==
dependencies:
"@types/long" "~3.0.32"
js-base64 "2.4.9"
protobufjs "~6.8.6"

"@tensorflow/[email protected]":
version "0.8.4"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-converter/-/tfjs-converter-0.8.4.tgz#7c1326e9858c6c3a6d23947e31a73e9458450a9b"
Expand All @@ -721,16 +712,6 @@
"@types/long" "~3.0.32"
protobufjs "~6.8.6"

"@tensorflow/[email protected]":
version "0.15.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.15.1.tgz#6196d2a9630236c77d71e036f05d2d6eadc2a25a"
integrity sha512-csZ1GvRiwy0PJcJXz6Xt9W+ZZHf0JI+nyJPtJU4QSVJVIFRCCAWqn2SsYwNt2Bp2rw2ZHhfuStz3veFUgaDSMA==
dependencies:
"@types/seedrandom" "2.4.27"
"@types/webgl-ext" "0.0.30"
"@types/webgl2" "0.0.4"
seedrandom "2.4.3"

"@tensorflow/[email protected]":
version "0.15.4"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.15.4.tgz#aaf52acd209476ebde7bd9a37a7c60ec9d067b65"
Expand All @@ -741,15 +722,6 @@
"@types/webgl2" "0.0.4"
seedrandom "2.4.3"

"@tensorflow/[email protected]":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-data/-/tfjs-data-0.2.1.tgz#6a4b2e08ef472b6f1a533b07c59aff71c2f4d03f"
integrity sha512-A8YSCtPkaXXQeJwI7CUw/Y+vCoCxiCRIH4Z0DOTD16dl9Iz4S+sr8VA3I4HsLLgS9BNXbRWFQxnbCe/j1ATtuA==
dependencies:
"@types/node-fetch" "^2.1.2"
node-fetch "~2.1.2"
seedrandom "~2.4.3"

"@tensorflow/[email protected]":
version "0.2.3"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-data/-/tfjs-data-0.2.3.tgz#67c0cd505485c9b0b6a83cb1c8a24559c5adfa68"
Expand All @@ -759,22 +731,17 @@
node-fetch "~2.1.2"
seedrandom "~2.4.3"

"@tensorflow/[email protected]":
version "0.10.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-layers/-/tfjs-layers-0.10.1.tgz#b7019302b776c7281fde425043659b6e97403dfb"
integrity sha512-p8b6mynBR/owKCRKR7J0tu7Qherlyzsm5MkgfVk9Z1PCqsR79soYEf1VbPsRap5g09Xl8RZgB5S/aMkRHy18Qg==

"@tensorflow/[email protected]":
version "0.10.3"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-layers/-/tfjs-layers-0.10.3.tgz#cf4001b5b7566b1526e65e615439e85070a1012c"
integrity sha512-Xhaz4+ZuL2SEm3S0u4x04dMYMrcG4w4dhMOjoQW8GhAJU4p7LkmP9TmwMEHp7CIVJiJzzQy7Hg8E5fESEnJinA==

"@tensorflow/tfjs-node-gpu@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node-gpu/-/tfjs-node-gpu-0.3.0.tgz#aa4c31987b160d454d8520fec0864cb8d8926f89"
integrity sha512-7bMQ8aIbmNFAU2D5zzSiymA2Vk2STLr4iaXaKPQv6OehaV8S3hWvuiMxALQuaoaBEQWtSSayfc1hCXaweIhjIw==
"@tensorflow/tfjs-node-gpu@^0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node-gpu/-/tfjs-node-gpu-0.3.1.tgz#79f7f3f25a2320531ad4faeb4e106f02cb18a4f0"
integrity sha512-zq0twp4B8Db5ISpBgYXHkOxN26X/8J+ho0aROXH4lyIs+mf/Rco/QikzZwv4G3wzQ8pYVUjPGwfXQ0GU8S/Pug==
dependencies:
"@tensorflow/tfjs" "~0.15.1"
"@tensorflow/tfjs" "~0.15.3"
adm-zip "^0.4.11"
bindings "~1.3.0"
https-proxy-agent "^2.2.1"
Expand All @@ -783,12 +750,12 @@
rimraf "^2.6.2"
tar "^4.4.6"

"@tensorflow/tfjs-node@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node/-/tfjs-node-0.3.0.tgz#dfb70d9b85b80e8118ed78df5db601fade0169c7"
integrity sha512-dLQ2jLWywsmYlMlCqXcnG5GPdsYv0Ggy/e4FKN+Vcsa3S0YngOdvpPtzVDx74JP9W9kO00OpNkXxDBSIiEFrJg==
"@tensorflow/tfjs-node@^0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node/-/tfjs-node-0.3.1.tgz#de09b5929130f119cd21f60569e1e0effd65c2b9"
integrity sha512-enjW/piTvgldfOdDu/kI/dqdCb/b5DQoYTfaG6NR1IjGDPLk6E8FJecJP+7jteWVa96+PkeqjFrO/20nyA1wLg==
dependencies:
"@tensorflow/tfjs" "~0.15.1"
"@tensorflow/tfjs" "~0.15.3"
adm-zip "^0.4.11"
bindings "~1.3.0"
https-proxy-agent "^2.2.1"
Expand All @@ -811,7 +778,7 @@
vega-lib "4.4.0"
vega-lite "3.0.0-rc10"

"@tensorflow/tfjs@^0.15.3":
"@tensorflow/tfjs@^0.15.3", "@tensorflow/tfjs@~0.15.3":
version "0.15.3"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs/-/tfjs-0.15.3.tgz#6608833952858c8984f20962eb86624f99196f06"
integrity sha512-NBAs+iGBNBxprm98mk488EfTDl2kA/lzNguoQGEMeIPWVHTbadSn2QV5xXKAf/fcOat+JwVfqe2vxHBbTjHMOw==
Expand All @@ -821,16 +788,6 @@
"@tensorflow/tfjs-data" "0.2.3"
"@tensorflow/tfjs-layers" "0.10.3"

"@tensorflow/tfjs@~0.15.1":
version "0.15.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs/-/tfjs-0.15.1.tgz#ed3ae264159eb60e63be38edb83fdb6cd03db2d2"
integrity sha512-PV+Heq+YrGp14e3+brYcC7SZVtq7wsrxyJe6YQIwySMcGBipP2i6UCWJMgbq8W71MMGBrST+dSBUkM1QZkZpHw==
dependencies:
"@tensorflow/tfjs-converter" "0.8.1"
"@tensorflow/tfjs-core" "0.15.1"
"@tensorflow/tfjs-data" "0.2.1"
"@tensorflow/tfjs-layers" "0.10.1"

"@types/clone@^0.1.30":
version "0.1.30"
resolved "https://registry.yarnpkg.com/@types/clone/-/clone-0.1.30.tgz#e7365648c1b42136a59c7d5040637b3b5c83b614"
Expand Down Expand Up @@ -4102,11 +4059,6 @@ jasmine@^3.2.0:
glob "^7.0.6"
jasmine-core "~3.3.0"

[email protected]:
version "2.4.9"
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.4.9.tgz#748911fb04f48a60c4771b375cac45a80df11c03"
integrity sha512-xcinL3AuDJk7VSzsHgb9DvvIXayBbadtMZ4HFPx8rUszbW1MuNMlwYVC4zzCZ6e1sqZpnNS5ZFYOhXqA39T7LQ==

js-base64@^2.1.9:
version "2.5.1"
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.5.1.tgz#1efa39ef2c5f7980bb1784ade4a8af2de3291121"
Expand Down
4 changes: 2 additions & 2 deletions jena-weather/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"train-rnn": "babel-node train-rnn.js"
},
"devDependencies": {
"@tensorflow/tfjs-node": "0.2.3",
"@tensorflow/tfjs-node-gpu": "0.2.3",
"@tensorflow/tfjs-node": "0.3.1",
"@tensorflow/tfjs-node-gpu": "0.3.1",
"argparse": "^1.0.10",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
Expand Down
64 changes: 11 additions & 53 deletions jena-weather/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -695,14 +695,6 @@
resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570"
integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=

"@tensorflow/[email protected]":
version "0.7.2"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-converter/-/tfjs-converter-0.7.2.tgz#49e578f71eb82d821af05176754c3452b42cfe9c"
integrity sha512-m46mtaF57x2NcxlNUKdJOCUp3ZSJU9bp9MzyEQ0Iz1bW2kKIxx1DDRjuP0fAeHX5H5Mh/tWIHB9yK6NwLz+aQQ==
dependencies:
"@types/long" "~3.0.32"
protobufjs "~6.8.6"

"@tensorflow/[email protected]":
version "0.8.4"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-converter/-/tfjs-converter-0.8.4.tgz#7c1326e9858c6c3a6d23947e31a73e9458450a9b"
Expand All @@ -711,16 +703,6 @@
"@types/long" "~3.0.32"
protobufjs "~6.8.6"

"@tensorflow/[email protected]":
version "0.14.5"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.14.5.tgz#17c3beeec31c4cd92b0f79a5ef30c4975a11e408"
integrity sha512-CSUgKuC17J1Ylr1s6iD1k2/tJr9lD16sUEjtzJbtiuTYCELOwujGK/1htunA7o3BwLuU7aqEI92MoKElEKa7qA==
dependencies:
"@types/seedrandom" "2.4.27"
"@types/webgl-ext" "0.0.30"
"@types/webgl2" "0.0.4"
seedrandom "2.4.3"

"@tensorflow/[email protected]":
version "0.15.4"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.15.4.tgz#aaf52acd209476ebde7bd9a37a7c60ec9d067b65"
Expand All @@ -731,15 +713,6 @@
"@types/webgl2" "0.0.4"
seedrandom "2.4.3"

"@tensorflow/[email protected]":
version "0.1.7"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-data/-/tfjs-data-0.1.7.tgz#8a4e43313b3d63cdfab719c0c1c47ced2ef321e3"
integrity sha512-RENjeBdBLq7GS9594kQx2GbM0WQV16VfxzzB0j2sq5vJh9GZQi2DB5Emq2LqZWs5rSeh7PDHZylGOn/ve6f8PA==
dependencies:
"@types/node-fetch" "^2.1.2"
node-fetch "~2.1.2"
seedrandom "~2.4.3"

"@tensorflow/[email protected]":
version "0.2.3"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-data/-/tfjs-data-0.2.3.tgz#67c0cd505485c9b0b6a83cb1c8a24559c5adfa68"
Expand All @@ -754,17 +727,12 @@
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-layers/-/tfjs-layers-0.10.3.tgz#cf4001b5b7566b1526e65e615439e85070a1012c"
integrity sha512-Xhaz4+ZuL2SEm3S0u4x04dMYMrcG4w4dhMOjoQW8GhAJU4p7LkmP9TmwMEHp7CIVJiJzzQy7Hg8E5fESEnJinA==

"@tensorflow/[email protected]":
version "0.9.2"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-layers/-/tfjs-layers-0.9.2.tgz#f5c1918d1a9660096f259cd1f99f59e689b41b69"
integrity sha512-peB824cEXRBy5IgZPIodd8zpQ/54VGOYbR+zY+Q1Le7v3Np05EoDcL8Z98MtpBHo6jOM7b/3Lf2zjfJVv2qxJA==

"@tensorflow/[email protected]":
version "0.2.3"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node-gpu/-/tfjs-node-gpu-0.2.3.tgz#86de49f7153aa2f814aecffe218f5f4ea9d94fe9"
integrity sha512-7J3azNC/gZUbO99oXuJb74ZjoPpK9Oo/IbuNTvGFNGoFUSAx8cm1b7Xe7L12Hf3enSCiO+oPbigRFBu7eg+Mxg==
"@tensorflow/[email protected]":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node-gpu/-/tfjs-node-gpu-0.3.1.tgz#79f7f3f25a2320531ad4faeb4e106f02cb18a4f0"
integrity sha512-zq0twp4B8Db5ISpBgYXHkOxN26X/8J+ho0aROXH4lyIs+mf/Rco/QikzZwv4G3wzQ8pYVUjPGwfXQ0GU8S/Pug==
dependencies:
"@tensorflow/tfjs" "~0.14.2"
"@tensorflow/tfjs" "~0.15.3"
adm-zip "^0.4.11"
bindings "~1.3.0"
https-proxy-agent "^2.2.1"
Expand All @@ -773,12 +741,12 @@
rimraf "^2.6.2"
tar "^4.4.6"

"@tensorflow/tfjs-node@0.2.3":
version "0.2.3"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node/-/tfjs-node-0.2.3.tgz#9408e7162bf27c7f8c59984c30c3141e6d8ec817"
integrity sha512-+VXi6GLsVXXido2DhzK2e1Y/qM9MvQNbbA00TFgGuVbGMmeX0ey97t6W23dT8dnDVPZprC2XSFumcpRoKe8ENg==
"@tensorflow/tfjs-node@0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node/-/tfjs-node-0.3.1.tgz#de09b5929130f119cd21f60569e1e0effd65c2b9"
integrity sha512-enjW/piTvgldfOdDu/kI/dqdCb/b5DQoYTfaG6NR1IjGDPLk6E8FJecJP+7jteWVa96+PkeqjFrO/20nyA1wLg==
dependencies:
"@tensorflow/tfjs" "~0.14.2"
"@tensorflow/tfjs" "~0.15.3"
adm-zip "^0.4.11"
bindings "~1.3.0"
https-proxy-agent "^2.2.1"
Expand All @@ -801,7 +769,7 @@
vega-lib "4.4.0"
vega-lite "3.0.0-rc10"

"@tensorflow/tfjs@^0.15.3":
"@tensorflow/tfjs@^0.15.3", "@tensorflow/tfjs@~0.15.3":
version "0.15.3"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs/-/tfjs-0.15.3.tgz#6608833952858c8984f20962eb86624f99196f06"
integrity sha512-NBAs+iGBNBxprm98mk488EfTDl2kA/lzNguoQGEMeIPWVHTbadSn2QV5xXKAf/fcOat+JwVfqe2vxHBbTjHMOw==
Expand All @@ -811,16 +779,6 @@
"@tensorflow/tfjs-data" "0.2.3"
"@tensorflow/tfjs-layers" "0.10.3"

"@tensorflow/tfjs@~0.14.2":
version "0.14.2"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs/-/tfjs-0.14.2.tgz#f38fa572286dadfe981c219f5639defd586c20c4"
integrity sha512-d+kBdhn3L/BOIwwc44V1lUrs0O5s49ujhYXVHT9Hs6y3yq+OqPK10am16H1fNcxeMn12/3gGphebglObTD0/Sg==
dependencies:
"@tensorflow/tfjs-converter" "0.7.2"
"@tensorflow/tfjs-core" "0.14.5"
"@tensorflow/tfjs-data" "0.1.7"
"@tensorflow/tfjs-layers" "0.9.2"

"@types/clone@^0.1.30":
version "0.1.30"
resolved "https://registry.yarnpkg.com/@types/clone/-/clone-0.1.30.tgz#e7365648c1b42136a59c7d5040637b3b5c83b614"
Expand Down
1 change: 1 addition & 0 deletions lstm-text-generation/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* =============================================================================
*/

import * as https from 'https';
import * as tf from '@tensorflow/tfjs';

// TODO(cais): Support user-supplied text data.
Expand Down
4 changes: 2 additions & 2 deletions lstm-text-generation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"train": "babel-node train_node.js"
},
"devDependencies": {
"@tensorflow/tfjs-node": "0.3.0",
"@tensorflow/tfjs-node-gpu": "0.3.0",
"@tensorflow/tfjs-node": "0.3.1",
"@tensorflow/tfjs-node-gpu": "0.3.1",
"argparse": "^1.0.10",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
Expand Down
22 changes: 11 additions & 11 deletions lstm-text-generation/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -727,12 +727,12 @@
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-layers/-/tfjs-layers-0.10.3.tgz#cf4001b5b7566b1526e65e615439e85070a1012c"
integrity sha512-Xhaz4+ZuL2SEm3S0u4x04dMYMrcG4w4dhMOjoQW8GhAJU4p7LkmP9TmwMEHp7CIVJiJzzQy7Hg8E5fESEnJinA==

"@tensorflow/[email protected].0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node-gpu/-/tfjs-node-gpu-0.3.0.tgz#aa4c31987b160d454d8520fec0864cb8d8926f89"
integrity sha512-7bMQ8aIbmNFAU2D5zzSiymA2Vk2STLr4iaXaKPQv6OehaV8S3hWvuiMxALQuaoaBEQWtSSayfc1hCXaweIhjIw==
"@tensorflow/[email protected].1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node-gpu/-/tfjs-node-gpu-0.3.1.tgz#79f7f3f25a2320531ad4faeb4e106f02cb18a4f0"
integrity sha512-zq0twp4B8Db5ISpBgYXHkOxN26X/8J+ho0aROXH4lyIs+mf/Rco/QikzZwv4G3wzQ8pYVUjPGwfXQ0GU8S/Pug==
dependencies:
"@tensorflow/tfjs" "~0.15.1"
"@tensorflow/tfjs" "~0.15.3"
adm-zip "^0.4.11"
bindings "~1.3.0"
https-proxy-agent "^2.2.1"
Expand All @@ -741,12 +741,12 @@
rimraf "^2.6.2"
tar "^4.4.6"

"@tensorflow/[email protected].0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node/-/tfjs-node-0.3.0.tgz#dfb70d9b85b80e8118ed78df5db601fade0169c7"
integrity sha512-dLQ2jLWywsmYlMlCqXcnG5GPdsYv0Ggy/e4FKN+Vcsa3S0YngOdvpPtzVDx74JP9W9kO00OpNkXxDBSIiEFrJg==
"@tensorflow/[email protected].1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node/-/tfjs-node-0.3.1.tgz#de09b5929130f119cd21f60569e1e0effd65c2b9"
integrity sha512-enjW/piTvgldfOdDu/kI/dqdCb/b5DQoYTfaG6NR1IjGDPLk6E8FJecJP+7jteWVa96+PkeqjFrO/20nyA1wLg==
dependencies:
"@tensorflow/tfjs" "~0.15.1"
"@tensorflow/tfjs" "~0.15.3"
adm-zip "^0.4.11"
bindings "~1.3.0"
https-proxy-agent "^2.2.1"
Expand All @@ -769,7 +769,7 @@
vega-lib "4.4.0"
vega-lite "3.0.0-rc10"

"@tensorflow/tfjs@^0.15.3", "@tensorflow/tfjs@~0.15.1":
"@tensorflow/tfjs@^0.15.3", "@tensorflow/tfjs@~0.15.3":
version "0.15.3"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs/-/tfjs-0.15.3.tgz#6608833952858c8984f20962eb86624f99196f06"
integrity sha512-NBAs+iGBNBxprm98mk488EfTDl2kA/lzNguoQGEMeIPWVHTbadSn2QV5xXKAf/fcOat+JwVfqe2vxHBbTjHMOw==
Expand Down
4 changes: 2 additions & 2 deletions mnist-acgan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"node": ">=8.11.0"
},
"dependencies": {
"@tensorflow/tfjs-node": "^0.2.1",
"@tensorflow/tfjs-node-gpu": "^0.2.1",
"@tensorflow/tfjs-node": "^0.3.1",
"@tensorflow/tfjs-node-gpu": "^0.3.1",
"argparse": "^1.0.10",
"time-ago": "0.2.1"
},
Expand Down
Loading

0 comments on commit 7702e3e

Please sign in to comment.