Skip to content

Commit 60c37a2

Browse files
[qna] Upgrade qna to 1.0.1 (#987)
Upgrade @tensorflow scoped dependencies to 3.15.0 and bump the package version to 1.0.1. Co-authored-by: Na Li <[email protected]>
1 parent 0041930 commit 60c37a2

File tree

5 files changed

+67
-43
lines changed

5 files changed

+67
-43
lines changed

qna/demo/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
"@babel/plugin-transform-runtime": "^7.7.6",
2727
"@babel/polyfill": "^7.10.4",
2828
"@babel/preset-env": "^7.7.6",
29-
"@tensorflow/tfjs-backend-cpu": "^3.3.0",
30-
"@tensorflow/tfjs-backend-webgl": "^3.3.0",
31-
"@tensorflow/tfjs-converter": "3.3.0",
32-
"@tensorflow/tfjs-core": "3.3.0",
29+
"@tensorflow/tfjs-backend-cpu": "^3.15.0",
30+
"@tensorflow/tfjs-backend-webgl": "^3.15.0",
31+
"@tensorflow/tfjs-converter": "3.15.0",
32+
"@tensorflow/tfjs-core": "3.15.0",
3333
"babel-preset-env": "^1.7.0",
3434
"clang-format": "~1.5.0",
3535
"cross-env": "^7.0.3",

qna/demo/yarn.lock

+34-22
Original file line numberDiff line numberDiff line change
@@ -1357,42 +1357,49 @@
13571357
"@tensorflow-models/qna@file:../dist":
13581358
version "0.0.0"
13591359

1360-
"@tensorflow/tfjs-backend-cpu@3.3.0", "@tensorflow/tfjs-backend-cpu@^3.3.0":
1361-
version "3.3.0"
1362-
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-backend-cpu/-/tfjs-backend-cpu-3.3.0.tgz#aa0a3ed2c6237a6e0c169678c5bd4b5a88766b1c"
1363-
integrity sha512-DLctv+PUZni26kQW1hq8jwQQ8u+GGc/p764WQIC4/IDagGtfGAUW1mHzWcTxtni2l4re1VrwE41ogWLhv4sGHg==
1360+
"@tensorflow/tfjs-backend-cpu@3.15.0", "@tensorflow/tfjs-backend-cpu@^3.15.0":
1361+
version "3.15.0"
1362+
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-backend-cpu/-/tfjs-backend-cpu-3.15.0.tgz#f9aa5309f464c019d36cb42463813455d970f101"
1363+
integrity sha512-f+GREHSiVkVIpFAwkjB7YWcZefqQvCKQhrNjZzm1WX4VdnWlo0b1lTI+gPIIYNk4LEFMBNJbfqy/N1xNS/SOLQ==
13641364
dependencies:
13651365
"@types/seedrandom" "2.4.27"
13661366
seedrandom "2.4.3"
13671367

1368-
"@tensorflow/tfjs-backend-webgl@^3.3.0":
1369-
version "3.3.0"
1370-
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-backend-webgl/-/tfjs-backend-webgl-3.3.0.tgz#29dd665f6a856c9defcb9108164f845e1fdcd02e"
1371-
integrity sha512-GWCtXbrjPTyye3ooId9GlcNDwnIMskZarUpNIQ5g/zeISLfwEQoutA/UqJF+HzuEHgGMsWFkmaO3xKVT7UMpdg==
1368+
"@tensorflow/tfjs-backend-webgl@^3.15.0":
1369+
version "3.15.0"
1370+
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-backend-webgl/-/tfjs-backend-webgl-3.15.0.tgz#5a1a302700003955aa3e10aabbdee08c28729cf6"
1371+
integrity sha512-QOxbTABFbP+m+UmCVB8VQlmZbsXiJOP8QRkRRZHhGWNKjtT3eWi+ROS1tbloS7/Q20SEmNZXCvcsjv0TBgFQPw==
13721372
dependencies:
1373-
"@tensorflow/tfjs-backend-cpu" "3.3.0"
1373+
"@tensorflow/tfjs-backend-cpu" "3.15.0"
13741374
"@types/offscreencanvas" "~2019.3.0"
13751375
"@types/seedrandom" "2.4.27"
13761376
"@types/webgl-ext" "0.0.30"
1377-
"@types/webgl2" "0.0.5"
1377+
"@types/webgl2" "0.0.6"
13781378
seedrandom "2.4.3"
13791379

1380-
"@tensorflow/tfjs-converter@3.3.0":
1381-
version "3.3.0"
1382-
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-converter/-/tfjs-converter-3.3.0.tgz#d9f2ffd0fbdbb47c07d5fd7c3e5dc180cff317aa"
1383-
integrity sha512-k57wN4yelePhmO9orcT/wzGMIuyedrMpVtg0FhxpV6BQu0+TZ/ti3W4Kb97GWJsoHKXMoing9SnioKfVnBW6hw==
1380+
"@tensorflow/tfjs-converter@3.15.0":
1381+
version "3.15.0"
1382+
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-converter/-/tfjs-converter-3.15.0.tgz#7346932800fc6f8509dbd468504d617cec5aa282"
1383+
integrity sha512-FBk3qGvNfS1xCw+ZLXCiD72vpR/rZaShFOY7HmLtTTfWlebWowrjaNqjvO8SKc7UGtRR/GJ7Bf3TgKyr9D3g0Q==
13841384

1385-
"@tensorflow/tfjs-core@3.3.0":
1386-
version "3.3.0"
1387-
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-3.3.0.tgz#3d26bd03cb58e0ecf46c96d118c39c4a90b7f5ed"
1388-
integrity sha512-6G+LcCiQBl4Kza5mDbWbf8QSWBTW3l7SDjGhQzMO1ITtQatHzxkuHGHcJ4CTUJvNA0JmKf4QJWOvlFqEmxwyLQ==
1385+
"@tensorflow/tfjs-core@3.15.0":
1386+
version "3.15.0"
1387+
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-3.15.0.tgz#1fc676be2aa591cd48a2dd8301a41bc1bf0f9b14"
1388+
integrity sha512-X1XGr8rewm/n0RDMnaLRcRYsTHlQCqQUR5DCtjUf4TuII7kq/pkZ9xCKPPfS1qUd5jLy663h8j5cAyjJNUt/hw==
13891389
dependencies:
1390+
"@types/long" "^4.0.1"
13901391
"@types/offscreencanvas" "~2019.3.0"
13911392
"@types/seedrandom" "2.4.27"
13921393
"@types/webgl-ext" "0.0.30"
1394+
long "4.0.0"
13931395
node-fetch "~2.6.1"
13941396
seedrandom "2.4.3"
13951397

1398+
"@types/long@^4.0.1":
1399+
version "4.0.1"
1400+
resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.1.tgz#459c65fa1867dafe6a8f322c4c51695663cc55e9"
1401+
integrity sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==
1402+
13961403
"@types/offscreencanvas@~2019.3.0":
13971404
version "2019.3.0"
13981405
resolved "https://registry.yarnpkg.com/@types/offscreencanvas/-/offscreencanvas-2019.3.0.tgz#3336428ec7e9180cf4566dfea5da04eb586a6553"
@@ -1413,10 +1420,10 @@
14131420
resolved "https://registry.yarnpkg.com/@types/webgl-ext/-/webgl-ext-0.0.30.tgz#0ce498c16a41a23d15289e0b844d945b25f0fb9d"
14141421
integrity sha512-LKVgNmBxN0BbljJrVUwkxwRYqzsAEPcZOe6S2T6ZaBDIrFp0qu4FNlpc5sM1tGbXUYFgdVQIoeLk1Y1UoblyEg==
14151422

1416-
"@types/[email protected].5":
1417-
version "0.0.5"
1418-
resolved "https://registry.yarnpkg.com/@types/webgl2/-/webgl2-0.0.5.tgz#dd925e20ab8ace80eb4b1e46fda5b109c508fb0d"
1419-
integrity sha512-oGaKsBbxQOY5+aJFV3KECDhGaXt+yZJt2y/OZsnQGLRkH6Fvr7rv4pCt3SRH1somIHfej/c4u7NSpCyd9x+1Ow==
1423+
"@types/[email protected].6":
1424+
version "0.0.6"
1425+
resolved "https://registry.yarnpkg.com/@types/webgl2/-/webgl2-0.0.6.tgz#1ea2db791362bd8521548d664dbd3c5311cdf4b6"
1426+
integrity sha512-50GQhDVTq/herLMiqSQkdtRu+d5q/cWHn4VvKJtrj4DJAjo1MNkWYa2MA41BaBO1q1HgsUjuQvEOk0QHvlnAaQ==
14201427

14211428
abab@^2.0.0:
14221429
version "2.0.5"
@@ -4212,6 +4219,11 @@ log-symbols@^2.2.0:
42124219
dependencies:
42134220
chalk "^2.0.1"
42144221

4222+
4223+
version "4.0.0"
4224+
resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28"
4225+
integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==
4226+
42154227
loose-envify@^1.0.0:
42164228
version "1.4.0"
42174229
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"

qna/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tensorflow-models/qna",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Question and Answer model (Mobile BERT)",
55
"main": "dist/index.js",
66
"unpkg": "dist/qna.min.js",
@@ -19,9 +19,9 @@
1919
"devDependencies": {
2020
"@rollup/plugin-node-resolve": "^11.1.0",
2121
"@rollup/plugin-typescript": "3.1.1",
22-
"@tensorflow/tfjs-backend-cpu": "^3.0.0",
23-
"@tensorflow/tfjs-converter": "^3.0.0",
24-
"@tensorflow/tfjs-core": "^3.0.0",
22+
"@tensorflow/tfjs-backend-cpu": "^3.15.0",
23+
"@tensorflow/tfjs-converter": "^3.15.0",
24+
"@tensorflow/tfjs-core": "^3.15.0",
2525
"@types/jasmine": "^3.6.3",
2626
"babel-core": "~6.26.3",
2727
"babel-plugin-transform-runtime": "~6.23.0",

qna/src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @license See the LICENSE file. */
22

33
// This code is auto-generated, do not modify this file!
4-
const version = '1.0.0';
4+
const version = '1.0.1';
55
export {version};

qna/yarn.lock

+24-12
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,29 @@
5252
estree-walker "^1.0.1"
5353
picomatch "^2.2.2"
5454

55-
"@tensorflow/tfjs-backend-cpu@^3.0.0":
56-
version "3.3.0"
57-
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-backend-cpu/-/tfjs-backend-cpu-3.3.0.tgz#aa0a3ed2c6237a6e0c169678c5bd4b5a88766b1c"
58-
integrity sha512-DLctv+PUZni26kQW1hq8jwQQ8u+GGc/p764WQIC4/IDagGtfGAUW1mHzWcTxtni2l4re1VrwE41ogWLhv4sGHg==
55+
"@tensorflow/tfjs-backend-cpu@^3.15.0":
56+
version "3.15.0"
57+
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-backend-cpu/-/tfjs-backend-cpu-3.15.0.tgz#f9aa5309f464c019d36cb42463813455d970f101"
58+
integrity sha512-f+GREHSiVkVIpFAwkjB7YWcZefqQvCKQhrNjZzm1WX4VdnWlo0b1lTI+gPIIYNk4LEFMBNJbfqy/N1xNS/SOLQ==
5959
dependencies:
6060
"@types/seedrandom" "2.4.27"
6161
seedrandom "2.4.3"
6262

63-
"@tensorflow/tfjs-converter@^3.0.0":
64-
version "3.3.0"
65-
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-converter/-/tfjs-converter-3.3.0.tgz#d9f2ffd0fbdbb47c07d5fd7c3e5dc180cff317aa"
66-
integrity sha512-k57wN4yelePhmO9orcT/wzGMIuyedrMpVtg0FhxpV6BQu0+TZ/ti3W4Kb97GWJsoHKXMoing9SnioKfVnBW6hw==
63+
"@tensorflow/tfjs-converter@^3.15.0":
64+
version "3.15.0"
65+
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-converter/-/tfjs-converter-3.15.0.tgz#7346932800fc6f8509dbd468504d617cec5aa282"
66+
integrity sha512-FBk3qGvNfS1xCw+ZLXCiD72vpR/rZaShFOY7HmLtTTfWlebWowrjaNqjvO8SKc7UGtRR/GJ7Bf3TgKyr9D3g0Q==
6767

68-
"@tensorflow/tfjs-core@^3.0.0":
69-
version "3.3.0"
70-
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-3.3.0.tgz#3d26bd03cb58e0ecf46c96d118c39c4a90b7f5ed"
71-
integrity sha512-6G+LcCiQBl4Kza5mDbWbf8QSWBTW3l7SDjGhQzMO1ITtQatHzxkuHGHcJ4CTUJvNA0JmKf4QJWOvlFqEmxwyLQ==
68+
"@tensorflow/tfjs-core@^3.15.0":
69+
version "3.15.0"
70+
resolved "https://registry.yarnpkg.com/@tensorflow/tfjs-core/-/tfjs-core-3.15.0.tgz#1fc676be2aa591cd48a2dd8301a41bc1bf0f9b14"
71+
integrity sha512-X1XGr8rewm/n0RDMnaLRcRYsTHlQCqQUR5DCtjUf4TuII7kq/pkZ9xCKPPfS1qUd5jLy663h8j5cAyjJNUt/hw==
7272
dependencies:
73+
"@types/long" "^4.0.1"
7374
"@types/offscreencanvas" "~2019.3.0"
7475
"@types/seedrandom" "2.4.27"
7576
"@types/webgl-ext" "0.0.30"
77+
long "4.0.0"
7678
node-fetch "~2.6.1"
7779
seedrandom "2.4.3"
7880

@@ -86,6 +88,11 @@
8688
resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-3.6.9.tgz#8785870f87839b7d91b45d7b226380f28dee5d9f"
8789
integrity sha512-B53NIwMj/AO0O+xfSWLYmKB0Mo6TYxfv2Mk8/c1T2w/e38t55iaPR6p7pHXTTtqfTmevPK3i8T1YweYFTZlxDw==
8890

91+
"@types/long@^4.0.1":
92+
version "4.0.1"
93+
resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.1.tgz#459c65fa1867dafe6a8f322c4c51695663cc55e9"
94+
integrity sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==
95+
8996
"@types/node@*":
9097
version "14.14.37"
9198
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.37.tgz#a3dd8da4eb84a996c36e331df98d82abd76b516e"
@@ -661,6 +668,11 @@ lodash@^4.17.4:
661668
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
662669
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
663670

671+
672+
version "4.0.0"
673+
resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28"
674+
integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==
675+
664676
loose-envify@^1.0.0:
665677
version "1.4.0"
666678
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"

0 commit comments

Comments
 (0)