Skip to content

Commit

Permalink
Upgrade mnist-node to @tensorflow/tfjs-node 0.2.3. (tensorflow#211)
Browse files Browse the repository at this point in the history
The baseball node demo needs a little work - I'll do that in a separate PR.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/tensorflow/tfjs-examples/211)
<!-- Reviewable:end -->
  • Loading branch information
nkreeger authored Jan 10, 2019
1 parent c1aac6e commit 772a6d9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 38 deletions.
3 changes: 1 addition & 2 deletions mnist-node/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
* =============================================================================
*/

const tf = require('@tensorflow/tfjs');
require('@tensorflow/tfjs-node');
const tf = require('@tensorflow/tfjs-node');
const argparse = require('argparse');

const data = require('./data');
Expand Down
2 changes: 1 addition & 1 deletion mnist-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"node": ">=8.11.0"
},
"dependencies": {
"@tensorflow/tfjs-node": "^0.2.1",
"@tensorflow/tfjs-node": "^0.2.3",
"argparse": "^1.0.10"
},
"scripts": {
Expand Down
64 changes: 29 additions & 35 deletions mnist-node/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,45 +45,44 @@
version "1.1.0"
resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570"

"@tensorflow/[email protected].1":
version "0.7.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-converter/-/tfjs-converter-0.7.1.tgz#af33b89f34fdfbdfbe8d9361c5542d7db514364d"
integrity sha512-kMQqM3GI5bBl6YQ98jCJNu49NvAWGeI3iVxO3ZqOYtN90lb/+3dSBelDo2LHFXc8jnJHpFOwkFPSZlCVrVGRag==
"@tensorflow/[email protected].2":
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].2":
version "0.14.2"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-0.14.2.tgz#b1ee6af0d893782a1c3b2c988091c36c42f1d7a4"
integrity sha512-VVbcu6H3ioKCkfkep/gQASfzPnQt3C5v+4ppH9pQ6Lf0lD+l3NMuMJYxa8Wjac1TfiWhFEX58bJvhpMfTGsUlg==
"@tensorflow/[email protected].5":
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].4":
version "0.1.4"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-data/-/tfjs-data-0.1.4.tgz#4732a2505c5d7d0d8ba0458f5b92837fd02ba442"
integrity sha512-YwaWNZnJj++QFEHQ1AKLqn2fvnmSp1X6CJ5YL5XJhq+m8P0AoouW9IpumCgO6WSjnD1M83/cVGZXzDIgJ4IlLg==
"@tensorflow/[email protected].7":
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"
utf8 "~2.1.2"

"@tensorflow/[email protected].1":
version "0.9.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-layers/-/tfjs-layers-0.9.1.tgz#685b741cf5c42aa9b2621485ffafdcc43c8db699"
integrity sha512-TZTi59E3rGdVTJCf/AEX1arigPp0426FJLGfiKzTXp3skEuubwDM9XlwiXWcB5+l+Pjvwg4FMNXwEyajXIxX2w==
"@tensorflow/[email protected].2":
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/tfjs-node@^0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-node/-/tfjs-node-0.2.1.tgz#a4d75f464fa2e4a5827f847ecc47273151faee50"
integrity sha512-cFSY+zJCfSb5mXSZdH/kEMkhVsPz9UmnTx6ahC9oe/1kIZhSrhs7nPMMyH/Q+RYJ6DEUhPKK40hy0TlUf4Tmqw==
"@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==
dependencies:
"@tensorflow/tfjs" "~0.14.1"
"@tensorflow/tfjs" "~0.14.2"
adm-zip "^0.4.11"
bindings "~1.3.0"
https-proxy-agent "^2.2.1"
Expand All @@ -92,15 +91,15 @@
rimraf "^2.6.2"
tar "^4.4.6"

"@tensorflow/tfjs@~0.14.1":
version "0.14.1"
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs/-/tfjs-0.14.1.tgz#d9b198c26eb1f154c5c27228800c9df7630d2cbf"
integrity sha512-fo68B4FNh/JBYAjArlLFsx2etE1kxCHG11bzsy01b2jZLrM9HE+jgmiNUGuHqN7aLu/CVqB76wDAtlBT4AnPsg==
"@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.1"
"@tensorflow/tfjs-core" "0.14.2"
"@tensorflow/tfjs-data" "0.1.4"
"@tensorflow/tfjs-layers" "0.9.1"
"@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/long@^4.0.0":
version "4.0.0"
Expand Down Expand Up @@ -378,11 +377,6 @@ tar@^4.4.6:
safe-buffer "^5.1.2"
yallist "^3.0.2"

utf8@~2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/utf8/-/utf8-2.1.2.tgz#1fa0d9270e9be850d9b05027f63519bf46457d96"
integrity sha1-H6DZJw6b6FDZsFAn9jUZv0ZFfZY=

wrappy@1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
Expand Down

0 comments on commit 772a6d9

Please sign in to comment.