profile
viewpoint

kangyizhang/community 0

Stores documents used by the TensorFlow developer community

kangyizhang/Install-OpenCV 0

shell scripts to install different version of OpenCV in different distributions of Linux

PR opened tensorflow/tfjs

Reviewers
add back arm support

arm32 support was accidentally removed in https://github.com/tensorflow/tfjs/commit/63235661d1c1f26ff5b6853375a59213fe99d9a5#diff-943b21d25f7c485a9de071e9a1d1c18bL80. This PR add it back.

Please note it is arm32 with TF C version 1.14. We do not support arm64 and TF C version 1.15 yet because we do not have the device to test.

@yhwang please take a look to make sure that it does not break support for external binaries.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

+4 -0

0 comment

1 changed file

pr created time in 17 days

create barnchtensorflow/tfjs

branch : node-arm

created branch time in 17 days

push eventtensorflow/tfjs

Kangyi Zhang

commit sha 46ca8d71b3ca08e65931901700a2d282285caa17

[node] Remove deprecated createTypeOpAttr (#3235) BREAKING remove deprecated function createTypeOpAttr

view details

push time in 21 days

PR merged tensorflow/tfjs

[node] Remove deprecated createTypeOpAttr cla: yes

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+153 -141

0 comment

5 changed files

kangyizhang

pr closed time in 21 days

push eventtensorflow/tfjs

Yannick Assogba

commit sha 138f23a53ec776eddd5e8430657243f03030486b

deprecate strict variants of ops (#3239) MISC

view details

Kangyi Zhang

commit sha 692ada3801db7e33d5fa3c0776c6965744d610bc

Merge branch 'master' into kangyi-node-deprecate

view details

push time in 22 days

push eventtensorflow/tfjs

Avindra Goolcharan

commit sha 6362cc8004a6e0b0b2dbc551412ffd1a4bce6a13

correct typo on tf.node.tensorBoard doc (#3243) DOC

view details

Kangyi Zhang

commit sha b25deaa4317a4b1dbdf1c4eb014be757a6a7489f

Add support for napi version 6 (#3242) DEV Add support for napi version 6.

view details

Ping Yu

commit sha 9a26075b85b5cee195771381817f1765182b77a2

allow tfjs to dep on tf-cpu latest version (#3240) BUG INTERNAL

view details

Kangyi Zhang

commit sha c879c3ee755fe1d51b301fdee66e079ba44c8a80

Merge branch 'master' into kangyi-node-deprecate

view details

push time in 22 days

push eventtensorflow/tfjs

Avindra Goolcharan

commit sha 6362cc8004a6e0b0b2dbc551412ffd1a4bce6a13

correct typo on tf.node.tensorBoard doc (#3243) DOC

view details

push time in 22 days

PR merged tensorflow/tfjs

correct typo on tf.node.tensorBoard doc cla: yes

Minor typo fix (durnig -> during)

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+2 -2

1 comment

1 changed file

avindra

pr closed time in 22 days

pull request commenttensorflow/tfjs

correct typo on tf.node.tensorBoard doc

Thank you for catching this!

avindra

comment created time in 22 days

issue commenttensorflow/tfjs

Error when installing @tensorflow/tfjs-node

@Smit12345 you need to install visual studio to compile the bindings in this library.

JonasJW

comment created time in 22 days

push eventtensorflow/tfjs

Na Li

commit sha db180e1a031d6f776cd1ddd277d4736899db5839

Modularize diag. (#3217) DEV Modularize diag.

view details

Kangyi Zhang

commit sha cda30ae8a70052ccad56360dc683dbe979f9dfea

Merge branch 'master' into kangyi-node-deprecate

view details

push time in 22 days

issue closedtensorflow/tfjs

tfjs-node does not work with Node14

TensorFlow.js version

1.7.4

Describe the problem or feature request

This is due to the new N-API-Version '6' which is missing from package.json.

The library builds apparently without issues (as N-API '5'), but the install.js script fails to symlink or copy tensorflow.dll (because folder for N-API '6' does not exist).

Code to reproduce the bug / link to feature request

With node14:

yarn init -y yarn add "@tensorflow/tfjs-node" (also with "-gpu") node -r "@tensorflow/tfjs-node" dir ".\node_modules@tensorflow\tfjs-node\lib" dir ".\node_modules@tensorflow\tfjs-node\lib\napi-v5" jq .binary.napi_versions ".\node_modules@tensorflow\tfjs-node\package.json" (misses version 6)

closed time in 22 days

jeffrson

issue commenttensorflow/tfjs

tfjs-node does not work with Node14

I have created https://github.com/tensorflow/tfjs/pull/3242 to fix this. Please use node version smaller than 14 for now. The next release of this library will support the latest node version.

jeffrson

comment created time in 22 days

issue closedtensorflow/tfjs

Error: The specified module could not be found.

TensorFlow.js version "@tensorflow/tfjs-node-gpu": "^1.7.4"

Describe the problem or feature request

Can't run the app, because of the TensorFlow error.

Error: The specified module could not be found.
\\?\C:\Users\xnerhu\app\node_modules\@tensorflow\tfjs-node-gpu\lib\napi-v5\tfjs_binding.node
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1197:18)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Module.require (internal/modules/cjs/loader.js:1036:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\Users\xnerhu\app\node_modules\@tensorflow\tfjs-node-gpu\dist\index.js:58:16)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Object.require.extensions.<computed> [as .js] (C:\Users\xnerhu\app\node_modules\ts-node\src\index.ts:851:44)
    at Module.load (internal/modules/cjs/loader.js:996:32)

I ran node-gyp rebuild as I saw in similar issues.

cd node_modules/@tensorflow/tfjs-node-gpu
node-gyp rebuild

And I got

...
gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\xnerhu\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xnerhu\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--verbose"
gyp ERR! cwd C:\Users\xnerhu\Desktop\machine learning\test\node_modules\@tensorflow\tfjs-node-gpu
gyp ERR! node -v v13.11.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok

I also tried updating npm and node-gyp, but it didin't work.

Code to reproduce the bug / link to feature request

import * as tf from '@tensorflow/tfjs-node-gpu';

function init() {
  tf.tensor([1, 2, 3, 4]).print();
}

init();

System details

  • Nvidia Cuda 10.1
  • Nvidia Cudnn 10.2 7.6.5.32
  • Nvidia Graphics Driver 445.87
  • Node.js 13.11.0
  • Python 2.7.15 (also 3.8 installed, but 2.7 is the default one)
  • Visual Studio 2019
  • Windows 10 x64 (v1909)

closed time in 22 days

xnerhu

issue commenttensorflow/tfjs

Error: The specified module could not be found.

The error is because of new node NAPI version 6. I have created https://github.com/tensorflow/tfjs/pull/3242 to fix this. Please use node version before 14 for now. The library will support latest node version in the next release.

xnerhu

comment created time in 22 days

push eventtensorflow/tfjs

kangyizhang

commit sha c0b0776b6cbc0f61b04c37bf36e6bdadfa831ce8

update tfjs-node-gpu

view details

push time in 22 days

PR opened tensorflow/tfjs

Add support for napi version 6

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

+2 -1

0 comment

1 changed file

pr created time in 22 days

create barnchtensorflow/tfjs

branch : node-napi-version

created branch time in 22 days

push eventtensorflow/tfjs

Kangyi Zhang

commit sha fb6ff2bb5ff7477db3ec421d1606619d339f4f03

remove deprecation (#3233) BREAKING Remove deprecated API (dataset.forEach and type DataElement) in tfjs-data

view details

Kangyi Zhang

commit sha 5733c357795930db54d3f29efd7acfd879cdb49b

Merge branch 'master' into kangyi-node-deprecate

view details

push time in 24 days

push eventtensorflow/tfjs

kangyizhang

commit sha 500eff0577bcb70dfa419baa23614016f9e20a7e

remove assersion

view details

kangyizhang

commit sha 7f99968586bcb96416d96f6d51011a669f8ad722

Merge branch 'kangyi-node-deprecate' of github.com:tensorflow/tfjs into kangyi-node-deprecate

view details

push time in 24 days

push eventtensorflow/tfjs

Kangyi Zhang

commit sha fb6ff2bb5ff7477db3ec421d1606619d339f4f03

remove deprecation (#3233) BREAKING Remove deprecated API (dataset.forEach and type DataElement) in tfjs-data

view details

push time in 24 days

PR merged tensorflow/tfjs

[data] Remove deprecated API in tfjs-data cla: yes

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+11 -25

0 comment

5 changed files

kangyizhang

pr closed time in 24 days

push eventtensorflow/tfjs

Yannick Assogba

commit sha 01a9d6c312849833be4f4eed9f04311d380f1176

import from cpu backend without triggering side effects INTERNAL

view details

Kangyi Zhang

commit sha 7f50ce4c93d5550f00fd721b9da21a61ebccecf4

Merge branch 'master' into kangyi-node-deprecate

view details

push time in 24 days

push eventtensorflow/tfjs

Yannick Assogba

commit sha 01a9d6c312849833be4f4eed9f04311d380f1176

import from cpu backend without triggering side effects INTERNAL

view details

Kangyi Zhang

commit sha f0117abc27442afe99149fae33486666d81efebe

Merge branch 'master' into kangyi-deprecate

view details

push time in 24 days

PR opened tensorflow/tfjs

Reviewers
[node] Remove deprecated createTypeOpAttr

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

+153 -141

0 comment

5 changed files

pr created time in 24 days

create barnchtensorflow/tfjs

branch : kangyi-node-deprecate

created branch time in 24 days

issue commenttensorflow/tfjs

Error: The specified module could not be found.

can you run npm rebuild @tensorflow/tfjs-node build-addon-from-source in your repo and try again?

xnerhu

comment created time in 24 days

PR opened tensorflow/tfjs

Reviewers
Remove deprecated API in tfjs-data

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

+11 -25

0 comment

5 changed files

pr created time in 25 days

create barnchtensorflow/tfjs

branch : kangyi-deprecate

created branch time in 25 days

push eventtensorflow/tfjs

Omri Grossman

commit sha 2163f497ea188d61634960c332fceba4fa45e935

Adding Touch The Dot game to the gallery (#3009) DOC Co-authored-by: Kangyi Zhang <kangyizhang@google.com>

view details

push time in a month

PR merged tensorflow/tfjs

Adding Touch The Dot game to the gallery cla: yes

Touch The Dot - is a game which the player must hit the colored dots with the correct hand and gain as much points as possible. For more information please contact me. https://github.com/OmriGM/body-pose-beat-game

Link to the game: https://touch-the-dot.herokuapp.com/

Thank you

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+1 -0

0 comment

1 changed file

OmriGM

pr closed time in a month

push eventOmriGM/tfjs

dependabot[bot]

commit sha 3ae2a4bd781a9fd63b256164f28c758d3b2cf4c8

Bump https-proxy-agent from 2.2.1 to 2.2.4 in /tfjs-backend-nodegl (#3086) SECURITY Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.1 to 2.2.4. - [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases) - [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.1...2.2.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ping Yu <4018+pyu10055@users.noreply.github.com>

view details

dependabot[bot]

commit sha 708e3ab607bf04643f87e1801406b64f3a4fe7d5

Bump https-proxy-agent from 2.2.2 to 2.2.4 in /tfjs-backend-wasm (#3087) SECURITY Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.2 to 2.2.4. - [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases) - [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.2...2.2.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ping Yu <4018+pyu10055@users.noreply.github.com>

view details

dependabot[bot]

commit sha 77f217abf02b210b54b987e00c85df9ade0bafb6

Bump https-proxy-agent from 2.2.1 to 2.2.4 in /tfjs-core (#3088) SECURITY Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.1 to 2.2.4. - [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases) - [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.1...2.2.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ping Yu <4018+pyu10055@users.noreply.github.com>

view details

Ping Yu

commit sha fd107362d41b914fc8681400c6e95f38b1404f7b

remove unnecessary eager call (#3145) BUG

view details

Ann Yuan

commit sha bd41ac856c4adc92910dcdc7fc4785e1fc94d45b

[core] Change inputs to matMul test to avoid precision issues in Safari as stopgap. (#3142) BUG Change inputs to matMul test to avoid precision issues in Safari as stopgap.

view details

Jiajia Qin

commit sha 743e729b93fca1e355dbf275d0a04716f1f3ea95

webgpu: Simplify the unary/binary shader conditionally PERF

view details

Hao Yunfei

commit sha 13d849c561049981871f59bc621d36c34b57824e

[webgpu] reduce workPerThread size when dispatch equal 1 (#2929) PERF

view details

Yannick Assogba

commit sha 8c59e2b43a3e9b17ef37432f36b39da4fb4f7ac8

Update packages to compile to ESM modules by default (#3112) BREAKING INTERNAL

view details

Na Li

commit sha acfa7f73056320da8f5e270ce5071fdbf89ca224

Remove unnecessary integration tests in node and node-gpu. (#3094)

view details

Na Li

commit sha 3a58e2fdddc5fd524a05dfc78e424644c4311c15

Remove use of chained ops. (#3058) DEV Remove use of chained ops.

view details

Ping Yu

commit sha 4337d2a83bcd46875f0a3fc531a7e8e26d49bd32

added support select v2 op (#3154) FEATURE

view details

Yannick Assogba

commit sha ed978b8a33ce145bf960ac51c5224b0fb1420cc2

add tfjs-vis back to test matrix (#3153) INTERNAL

view details

Ping Yu

commit sha 36f286379d9046b70371f37bf95342ef5474bac0

fix tensor array gather not be able to handle indices longer than available tensors (#3157) BUG

view details

Na Li

commit sha 22b6c45929d278a423161e7c988cae046649cf92

[core] Modularize concat and split. (#3093) DEV Modularize concat and split.

view details

Ann Yuan

commit sha f58e4b9a28c0580693620cc8b9702b8436d70395

add test (#3171)

view details

Ann Yuan

commit sha 316186cbcfdfbc4c494263ccadad2494829641d3

[core] Restrict size of conv test output to temporarily fix precision issues in Safari. (#3187) BUG Restrict size of conv test output to temporarily fix precision issues in Safari.

view details

Na Li

commit sha 16d20c88a8eaffe40ccb772495c9c6dae45698a0

Modularize greater. (#3191) DEV Modularize greater.

view details

Na Li

commit sha 02f77c1613b237d5761d5bd9db80d155d3b71ec5

Increase capture timeout. (#3198) INTERNAL * Increase capture timeout. * Move firefox. * Add logging.

view details

Na Li

commit sha 1fd2c98c0f7982855b78afe5ff60a80c22ab0fae

Temporarily remove ios test in nightly build. (#3199) INTERNAL * Use firefox. * Temporarily test nightly. * remove iphone. * Update iphone test. * Update iphone test. * Temporarily remove ios to unblock nightly build. * Temporarily remove ios to unblock nightly build.

view details

Na Li

commit sha 266d90d3f9c97db71f953904a7b5150fc02485e1

Fix browserstack iPhone browser issue. (#3204) DEV Fix browserstack iPhone browser issue.

view details

push time in a month

PR merged tensorflow/tfjs

[tfjs-node] fix import in README.md cla: yes

Node.js doesn't support import * .

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+2 -2

3 comments

1 changed file

qwertyforce

pr closed time in a month

push eventtensorflow/tfjs

qwertyforce

commit sha 293d72f4773e19f63a881f7a80d4033ec7887eb1

[tfjs-node] fix import in README.md (#3201) DOC Node.js doesn't support import * . Co-authored-by: Kangyi Zhang <kangyizhang@google.com>

view details

push time in a month

push eventqwertyforce/tfjs

Na Li

commit sha 266d90d3f9c97db71f953904a7b5150fc02485e1

Fix browserstack iPhone browser issue. (#3204) DEV Fix browserstack iPhone browser issue.

view details

Kangyi Zhang

commit sha 33a98fb13a47dab09a17fffc06d0105018944dba

Merge branch 'master' into patch-2

view details

push time in a month

push eventtensorflow/tfjs

Kangyi Zhang

commit sha 83bb618af714ec15619f3e8f8c7dc369dba60cae

update yarn.lock (#3090) DEV

view details

push time in 2 months

PR merged tensorflow/tfjs

Reviewers
Bump dev deps version to remove security vulnerability cla: yes

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+146 -14

0 comment

21 changed files

kangyizhang

pr closed time in 2 months

PR closed tensorflow/tfjs

Reviewers
Update karma version to remove Security vulnerability cla: yes

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+7081 -9919

1 comment

21 changed files

kangyizhang

pr closed time in 2 months

push eventtensorflow/tfjs

Na Li

commit sha c7b64f6760d8d2b67d08918310bc9bae485fa70b

Refactor CI flow. (#3081) DEV Refactor CI flow.

view details

Kangyi Zhang

commit sha c8dc884faf1f7534c7a047cb9670af06aeacde8f

Merge branch 'master' into bump-dev-version

view details

push time in 2 months

PR opened tensorflow/tfjs

Bump dev deps version to remove security vulnerability

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

+146 -14

0 comment

21 changed files

pr created time in 2 months

create barnchtensorflow/tfjs

branch : bump-dev-version

created branch time in 2 months

push eventtensorflow/tfjs

Na Li

commit sha 8c934b9414c39a6020dcde9f447ec86252e98ef9

Add retry to download emsdk due to flaky download. (#3076) DEV Add retry to download emsdk due to flaky download.

view details

Ping Yu

commit sha 8e58af092b45a78cf2246eb53449e6ad174178c1

ensure isMobile() does not fail when navigator is not set (#3075) BUG ensure isMobile() does not fail when navigator is not set.

view details

Na Li

commit sha 8fc75201ed8b7856a6ca076532a931c4734ea51b

Add retry to install emsdk. (#3078) DEV Add retry to install emsdk.

view details

Na Li

commit sha 53fed37f7e32960ec8f01d127c5ba8403dd26b51

Add new deps to release script. (#3066) DEV Add new deps to release script.

view details

Na Li

commit sha b05cfd28d30c58148b9a1ce4338b593b0a9217df

Remove cpu backend in tfjs-node testing, use fake instead. (#3082) BUG Remove cpu backend in tfjs-node testing, use fake instead.

view details

Ping Yu

commit sha 298d1051ea89fa634b14d6d69d117ae6595ff8b4

fix nightly test for isMobile (#3079) DEV fix nightly test for isMobile.

view details

Ann Yuan

commit sha e870089ab057bd2c8d9512bdf1dfcabfbd2322b8

[webgpu] Add devDependency on WebGL for testing. (#3077) DEV

view details

Kangyi Zhang

commit sha 07c859b3834df211cccb902305f6889da7596b5c

Merge branch 'master' into update-karma-version

view details

push time in 2 months

push eventtensorflow/tfjs

kangyizhang

commit sha da76814aa3513658e2b05175ff2d449ea5e4c017

update dev version

view details

push time in 2 months

push eventtensorflow/tfjs-models

Kangyi Zhang

commit sha 737c722d80674a93e2bf4cfd01ba954698b13daa

update yarn.lock (#436) DEV

view details

push time in 2 months

push eventtensorflow/tfjs-examples

Kangyi Zhang

commit sha 8d0400d11bd1b20dbfd5dca7d375400fdec96303

Bump dev deps version to remove security vulnerability (#346) DEV * update version * update deps version * update yarn.lock * revert package.json

view details

push time in 2 months

create barnchtensorflow/tfjs-models

branch : update-dev-deps

created branch time in 2 months

push eventtensorflow/tfjs-examples

kangyizhang

commit sha 6c9cc79a2eb00cbae9fe89e69da518beb687f168

revert package.json

view details

push time in 2 months

push eventtensorflow/tfjs-examples

kangyizhang

commit sha e94915d01e46d228cf63036642a1ed1c8c773886

update yarn.lock

view details

push time in 2 months

push eventtensorflow/tfjs-website

Kangyi Zhang

commit sha 985b2cdd9449e1a77fa134caddd7b1f72754374b

update deps version (#358) DEV

view details

push time in 2 months

push eventtensorflow/tfjs-examples

kangyizhang

commit sha 71345d9131a3bfed54c341e3a8799a51709d9a59

update deps version

view details

push time in 2 months

push eventtensorflow/tfjs-wechat

kangyizhang

commit sha 3237a11f4143d6a62bca5715cfed2faf8df3986e

update dev deps version

view details

push time in 2 months

create barnchtensorflow/tfjs-examples

branch : update-dev-deps

created branch time in 2 months

create barnchtensorflow/tfjs-website

branch : bump-deps

created branch time in 2 months

push eventtensorflow/tfjs

kangyizhang

commit sha 10cf365a6de40ee088cd66b352425c7a2aa4c6f5

update vis

view details

kangyizhang

commit sha 7284e7e415ee607c5c08d7a05c05549cbd238db9

update vis

view details

push time in 2 months

push eventtensorflow/tfjs

kangyizhang

commit sha 12a2bb8dbbf01a5081f7e0ac9a5c0a74842effb1

update vis

view details

kangyizhang

commit sha 639695571a38e4d1e1cfe6c918b9153d289ef7c2

Merge branch 'update-karma-version' of github.com:tensorflow/tfjs into update-karma-version

view details

push time in 2 months

push eventtensorflow/tfjs

Na Li

commit sha 4ad0b62217c675ffa779bca5c98fc4649fdf7020

[cpu] Fix build and deps. (#3064) DEV Refactor build and build-deps commands.

view details

Yannick Assogba

commit sha ca7f4f09619226fd5b7c5c649e4ffaf7fb5221a8

Remove WebGL test matrix from core (#3063) INTERNAL * remove webgl test matrix from core * make webgl and cpu pass NIGHTLY config * add cpu backend bundle to webworker test

view details

Na Li

commit sha 9461c9c659d1d9ff69561c899b5af23cd54f8f91

Add new deps to release script. (#3065) DEV Add new deps to release script.

view details

Ann Yuan

commit sha 80c87d92c643141c78eb7b4a2e48a33c4bf79ba6

[core] Fix toPixels memLeak for TensorLike inputs. (#3073) BUG

view details

Kangyi Zhang

commit sha 447aee02645faa08fcf0cc886293b6cd2fd669f1

Merge branch 'master' into update-karma-version

view details

push time in 2 months

push eventtensorflow/tfjs

kangyizhang

commit sha 0534a9ed9857ae84158b13bcc55d63f2531fd27a

update vis

view details

push time in 2 months

issue commenttensorflow/tfjs

tfjs to use with Node-RED in NVIDIA Jetson Nano

Yes, it is arm32 with tensorflow 1.14. We do not support later version of tensorflow with arm.

krambriw

comment created time in 2 months

issue commenttensorflow/tfjs

tfjs to use with Node-RED in NVIDIA Jetson Nano

@yhwang This is the link for arm binary: https://storage.cloud.google.com/tf-builds/libtensorflow_r1_14_linux_arm.tar.gz. The support was accidentally removed in https://github.com/tensorflow/tfjs/commit/63235661d1c1f26ff5b6853375a59213fe99d9a5#diff-943b21d25f7c485a9de071e9a1d1c18bL80

krambriw

comment created time in 2 months

issue commenttensorflow/tfjs

tfjs to use with Node-RED in NVIDIA Jetson Nano

We did support arm64 but it was removed in a later change. I will add it back.

krambriw

comment created time in 2 months

PR opened tensorflow/tfjs

Reviewers
Update karma version to remove Security vulnerability

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

+8481 -10984

0 comment

22 changed files

pr created time in 2 months

push eventtensorflow/tfjs

kangyizhang

commit sha b15791d36a167ae47ea814ce7ae0bc133d964bc7

update lockfile

view details

push time in 2 months

create barnchtensorflow/tfjs

branch : update-karma-version

created branch time in 2 months

issue commenttensorflow/tfjs

Installing tensorflowjs for python disables gpu support

It is mentioned in the requirement section.

The reason is that each version of the tensorflowjs pip package depends on a specific version of tensorflow.

davodesign84

comment created time in 2 months

issue closedtensorflow/tfjs

Installing tensorflowjs for python disables gpu support

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version

tensorflowjs 1.7.2

Browser version

Backend only

Describe the problem or feature request

Using the official gpu docker container tensorflow/tensorflow:latest-gpu-py3-jupyter

Before installing tensorflowjs gpu are accessible in python

print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
> Num GPUs Available:  1

After installing tensorflowjs

print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
> Num GPUs Available:  0

Code to reproduce the bug / link to feature request

Ensure docker is installed and nvidia-docker is installed and running correctly.

docker pull tensorflow/tensorflow:latest-gpu-py3
docker run --gpus all -it tensorflow/tensorflow:latest-gpu-py3 bash
python
import tensorflow as tf
tf.config.list_physical_devices('GPU')
>> [PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
exit()
pip install tensorflowjs
python
import tensorflow as tf
tf.config.list_physical_devices('GPU')
>> [ ] # The array should still contain the gpu devices

closed time in 2 months

davodesign84

issue commenttensorflow/tfjs

Installing tensorflowjs for python disables gpu support

The issue seems to be related with tfjs converter pip package. While installing tensorflowjs pip package, it will install its corresponding dependent version of tensorflow python. As listed in step 0 in the documentation (https://github.com/tensorflow/tfjs/tree/master/tfjs-converter#step-1-converting-a-tensorflow-savedmodel-tensorflow-hub-module-keras-hdf5-or-tfkeras-savedmodel-to-a-web-friendly-format), while using tensorflowjs converter pip, it should happen in its own virtual environment or docker, so that it does not cause conflict with the original tensorflow python package.

davodesign84

comment created time in 2 months

issue commenttensorflow/tfjs

Error: Cannot find module /tf-node/node_modules/@tensorflow/tfjs-node/lib/napi-v4/tfjs_binding.node'

@yangshengdong I have uploaded precompile addon module so reinstall the library should work for you. But in future in you upgrade the version you might have this issue again. The error seems to be related with calling python version in npm, and based on https://github.com/netlify-templates/victor-hugo/issues/186, you can try to reinstall npm.

yangshengdong

comment created time in 2 months

issue closedtensorflow/tfjs

[node] Add check and error message when tfjs_bindings.node is missing

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version

Browser version

Describe the problem or feature request

Code to reproduce the bug / link to feature request

If you would like to get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

GitHub issues for this repository are tracked in the tfjs union repository.

Please file your issue there, following the guidance in that issue template.

closed time in 2 months

kangyizhang

issue commenttensorflow/tfjs

[node] Add check and error message when tfjs_bindings.node is missing

This has been fixed by https://github.com/tensorflow/tfjs/pull/3013

kangyizhang

comment created time in 2 months

push eventtensorflow/tfjs

Kangyi Zhang

commit sha 8dfaa55f58ad2a129547b8f1a0a73283ebbaaf1c

[node] Check if native addon module exists and throw error message (#3013) DEV * check if addon module exists * test * test * convert path to string

view details

push time in 2 months

PR merged tensorflow/tfjs

Reviewers
[node] Check if native addon module exists and throw error message cla: yes

A lot of users are having problem of using tfjs-node with error message

module.js:550
    throw err;
    ^

Error: Cannot find module 'node_modules/@tensorflow/tfjs-node/lib/napi-v4/tfjs_binding.node'

Mostly this is because user switched node version or having issue of compile the addon module when pre-compiled option is not available. Though we have limited ability to resolve the problem, we should provide better error message to let user know how to fix the problem on their machine.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+13 -0

0 comment

1 changed file

kangyizhang

pr closed time in 2 months

push eventtensorflow/tfjs

Ping Yu

commit sha 83a1dc35b7a62f1cad8a119003393f388aad8d70

fix nightly test (#3018) BUG

view details

Kangyi Zhang

commit sha fb22b098a806c244aa9451ad01d19994981c25f9

Merge branch 'master' into node-error-message

view details

push time in 2 months

push eventtensorflow/tfjs

kangyizhang

commit sha bca9ec62cf8a8ea43028a9846bb28d79310e42b8

convert path to string

view details

push time in 2 months

push eventtensorflow/tfjs

Na Li

commit sha 1623bc4541c353680c2d0b0d911e2b7b433cb115

Refactor release script. (#3005)

view details

Kangyi Zhang

commit sha 720ec31089ec08bac2ac0640c9e8f80f7c54246a

Merge branch 'master' into node-error-message

view details

push time in 2 months

push eventtensorflow/tfjs

Ping Yu

commit sha 3e44b6ea6af29d57d295f79262ce334e33ae180f

support Op MaxPooWthArgmax in CPU and WebGL (#3010) FEATURE * add support for max_pool_with_arg_max op * refactor maxPoolWithArgmax to reuse existing kernel code * fixed failed tests * exclude maxpoolwithargmax * fix lint error * more lint fixes * addessed comments * fixed test

view details

Kangyi Zhang

commit sha 9971bbcfcc1f75d0f0b5454aa64184e144295406

Merge branch 'master' into node-error-message

view details

push time in 2 months

issue commenttensorflow/tfjs

Error: Cannot find module /tf-node/node_modules/@tensorflow/tfjs-node/lib/napi-v4/tfjs_binding.node'

hi @yangshengdong

  1. what is your operating system?
  2. can you provide the logs when you install @tensorflow/tfjs-node
  3. can you confirm what is inside node_modules/@tensorflow/tfjs-node/lib
  4. can you try to run npm rebuild @tensorflow/tfjs-node build-addon-from-source and see if it resolves this issue?
yangshengdong

comment created time in 2 months

PR opened tensorflow/tfjs

[node] Check if native addon module exists and throw error message

A lot of users are having problem of using tfjs-node with error message

module.js:550
    throw err;
    ^

Error: Cannot find module 'node_modules/@tensorflow/tfjs-node/lib/napi-v4/tfjs_binding.node'

Mostly this is because user switched node version or having issue of compile the addon module when pre-compiled option is not available. Though we have limited ability to resolve the problem, we should provide better error message to let user know how to fix the problem on their machine.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

+13 -0

0 comment

1 changed file

pr created time in 2 months

create barnchtensorflow/tfjs

branch : node-error-message

created branch time in 2 months

issue openedtensorflow/tfjs

[node] Add check and error message when tfjs_bindings.node is missing

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version

Browser version

Describe the problem or feature request

Code to reproduce the bug / link to feature request

If you would like to get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

GitHub issues for this repository are tracked in the tfjs union repository.

Please file your issue there, following the guidance in that issue template.

created time in 2 months

push eventtensorflow/tfjs

Kangyi Zhang

commit sha 26bccc44133ae14d98f3ac6f217a4ee8d51055f0

[node] Clean up dependency of tfc and tfl in node tests (#2995) DEV * clean up tfc&tfl * remove unnecessary deps on tfjs-core * save * add tfjs-core back

view details

push time in 2 months

PR merged tensorflow/tfjs

[node] Clean up dependency of tfc and tfl in node tests cla: yes

Removed unnecessary dependency of tfjs-core and tfjs-layers. Direct import of tfjs-core is still required for backend configuration and test. Direct import of tfjs-layers is fully removed.

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+77 -101

0 comment

18 changed files

kangyizhang

pr closed time in 2 months

Pull request review commenttensorflow/tfjs

[node] Clean up dependency of tfc and tfl in node tests

     esutils "^2.0.2"     js-tokens "^4.0.0" -"@bazel/bazel-darwin_x64@0.24.0":-  version "0.24.0"-  resolved "https://registry.yarnpkg.com/@bazel/bazel-darwin_x64/-/bazel-darwin_x64-0.24.0.tgz#828ef298d8d542961df388f17b0244f4f4302a74"-  integrity sha512-xly44vkcD/fauUb7Lm5Lme4qhEZdkuuyBKSVQUHPbYAGDdbj/W8dupI3bZREkJAgG/WrRU+WXUemMj4U8ZcLcw==--"@bazel/bazel-linux_x64@0.24.0":-  version "0.24.0"-  resolved "https://registry.yarnpkg.com/@bazel/bazel-linux_x64/-/bazel-linux_x64-0.24.0.tgz#9ef2e7266833ad2221fe4af4ceb6763d2897e3ff"-  integrity sha512-p5ylPLWnJZDGbaIFBrtD/tp3Su5rMdzeeNJKU24XyiWQTHVZ3OD3I2Fb0ILCgfBjY8AlA7EtCtOI4hYnAuIOtg==--"@bazel/bazel-win32_x64@0.24.0":-  version "0.24.0"-  resolved "https://registry.yarnpkg.com/@bazel/bazel-win32_x64/-/bazel-win32_x64-0.24.0.tgz#02d83113a6c6ed99795a3e41bff5631aa141638d"-  integrity sha512-/bcSEx+GoV/q7H4WM0jazfxTcurSiIIePhRv+d05mxRDcaWwhCO8KzmmZRWH1abW6npvq5tLkbSQi7G7nUBhgg==--"@bazel/bazel@^0.24.0":-  version "0.24.0"-  resolved "https://registry.yarnpkg.com/@bazel/bazel/-/bazel-0.24.0.tgz#f4e68e3680ac299858c24c26be3d08d1151e78fc"-  integrity sha512-/5E55tqH9ogAGF9Dd7RSCJmk7/xdlsPTAhsX3yEsEMs7GLdHlgD3jbeePsKUiHKKr8LXAufjTs2pXQfjrkZRMg==-  optionalDependencies:-    "@bazel/bazel-darwin_x64" "0.24.0"-    "@bazel/bazel-linux_x64" "0.24.0"-    "@bazel/bazel-win32_x64" "0.24.0"+"@bazel/bazelisk@^1.3.0":

Yes, this is an update based on https://github.com/tensorflow/tfjs/pull/2912

kangyizhang

comment created time in 2 months

push eventtensorflow/tfjs

kangyizhang

commit sha 87b2e9c113dc28082d033f5db2244ec7115adfaf

add tfjs-core back

view details

push time in 2 months

push eventtensorflow/tfjs

kangyizhang

commit sha d233cddbd4cd6485f408e3ad04f1fe6658e78e58

save

view details

push time in 2 months

push eventtensorflow/tfjs

Manish Aradwad

commit sha 5f1991a993b0f6cbed708599eac084717d0a7f5a

[tfjs-layers] improve doc formatting in convolutional.ts DOC

view details

Na Li

commit sha c16bbc8fdd57dcc0bde92cf633e9ae80acf3ea95

Fix nightly build. (#2975)

view details

Na Li

commit sha 2a8fa643f11284da4f5985b42ff19f545a62fde3

Fix publish-npm script (#2973)

view details

Ann Yuan

commit sha b3ac3de18045140cf36978a198ebec510e86b8e0

[core] Modularize transpose op and kernel. (#2971) FEATURE

view details

Ping Yu

commit sha 5ffd7b89328bfee63393f755cc48783c79ee54b0

allow TF DT_UINT8 to map to tfjs int32 (#2981) BUG

view details

Xu Xing

commit sha 35cde992fe544b79aafeb2f86fa6a16311a264a9

[webgpu] Export webgpu for application defined WebGPUProgram (#2954) FEATURE Co-authored-by: Ann Yuan <annyuan@gmail.com>

view details

Rajeshwar Reddy T

commit sha 659b430189c6b82e8dcb8b66237a8bd99d610b9f

Update README.md (#2956) DOC

view details

Xu Xing

commit sha 432e93118da0555051de4ad537b272fd5ef2fa88

[webgpu] Modularize square and squareDiff (#2962) FEATURE Co-authored-by: Ann Yuan <annyuan@gmail.com>

view details

Na Li

commit sha 1834ede5be48144b5fc3a2691a6d0800ffc0312a

Turn off nightly run for union package. (#2985)

view details

Na Li

commit sha 1ad92e9955e37a473cf5aa3f9d636aa3b269ca67

Fix release script. (#2984)

view details

Na Li

commit sha c8223f28dfedc14ccf71afe843a456dd6dc76eb3

Upgrade version for integration tests. (#2990)

view details

Yorkie Liu

commit sha a7a07387f66ff46b34641bc0140db55a17e076ca

core: update the @bazel/bazel to recommended bazellisk (#2912) DEV * core: update the @bazel/bazel to recommended bazellisk Installing the bazel via YARN is hardly working because of some download issues, and @bazel/bazelisk could fix the network issues. I guess the failures of using bazel is because it tries to download almost 300MB when installing, and the later is 6MB. For more details, see: https://github.com/bazelbuild/rules_nodejs/wiki#migrating-to-bazelbazelisk-package. * change bazel to bazelisk * add bazel version Co-authored-by: Kangyi Zhang <kangyizhang@google.com>

view details

kangyizhang

commit sha ab1da348686f09deaabcf398dfa4ec9eebec3f9d

Merge branch 'master' of github.com:tensorflow/tfjs into clean-tfc-tfl-deps

view details

kangyizhang

commit sha c4e02ca5ee7d39bc007a210e65778b84a7ec0653

remove unnecessary deps on tfjs-core

view details

push time in 2 months

issue closedtensorflow/tfjs

TypeError: tf.tensor(a).get(0) is not a function

Hello,

I am learning TensorFlow.js through an online course. we prepared a very simple KNN function by tfjs but on the teacher's computer it works but on my computer no.

I installed the 1.7.0 version of TensorFlow ( because of the latest existed document in tfjs website is 1.7.0) Node version: v12.16.1

when I run node on the terminal the below error appears :

 .sort((a,b)=>{ return  a.get(0)>b.get(0) ? 1 : -1 ; })//return  a.get(0)>b.get(0) ? 1 : -1 ;
                                         ^
TypeError: a.get is not a function

it is my code :

require("@tensorflow/tfjs-node");
const tf = require("@tensorflow/tfjs");
const loadCSV = require("./load-csv.js");


function knn( features , labels, predictionPoint , k){
    return features
            .sub(predictionPoint)
            .pow(2)
            .sum(1)
            .pow(0.5)
            .expandDims(1)
            .concat(labels , 1)
            .unstack()
            .sort((a,b)=>{ return  a.get(0)>b.get(0) ? 1 : -1 ; })//return  a.get(0)>b.get(0) ? 1 : -1 ;
            .slice(0, k)
            .reduce((accumulated , thisObj ) => { 
                // return accumulated + thisObj.get(1) 
            }, 0)/k;

}

let { features , labels , testFeatures , testLabels } = loadCSV("./kc_house_data.csv" , {
    shuffle : true , 
    splitTest : 10,
    dataColumns: ['lat','long'],
    labelColumns: ['price']
});

const locations = tf.tensor( features );
const prices = tf.tensor( labels );
const weAreLookingFor =  tf.tensor( testFeatures[0] );

const result = knn ( locations, prices, weAreLookingFor , 10 );
console.log("KNN result is  : ",result);

I could not find any related issues about it. I am completely stuck because of this problem. Please Help !

closed time in 2 months

alidasmeh

issue commenttensorflow/tfjs

TypeError: tf.tensor(a).get(0) is not a function

Tensor.array() is an asynchronize function. You will need to use await or promise to get the returned value. Or you can you Tensor.arraySync(): https://js.tensorflow.org/api/latest/#tf.Tensor.array

alidasmeh

comment created time in 2 months

push eventtensorflow/tfjs

Yorkie Liu

commit sha a7a07387f66ff46b34641bc0140db55a17e076ca

core: update the @bazel/bazel to recommended bazellisk (#2912) DEV * core: update the @bazel/bazel to recommended bazellisk Installing the bazel via YARN is hardly working because of some download issues, and @bazel/bazelisk could fix the network issues. I guess the failures of using bazel is because it tries to download almost 300MB when installing, and the later is 6MB. For more details, see: https://github.com/bazelbuild/rules_nodejs/wiki#migrating-to-bazelbazelisk-package. * change bazel to bazelisk * add bazel version Co-authored-by: Kangyi Zhang <kangyizhang@google.com>

view details

push time in 2 months

PR merged tensorflow/tfjs

core: update the @bazel/bazel to recommended bazellisk cla: yes

Installing the @bazel/bazel via YARN is hardly working because of some download issues, and @bazel/bazelisk could fix the network issues, I guess the failures of using @bazel/bazel is because it tries to download almost 300MB when installing, and the later is 6MB.

For more details, see:

  • https://github.com/bazelbuild/rules_nodejs/wiki#migrating-to-bazelbazelisk-package.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+3 -2

2 comments

2 changed files

yorkie

pr closed time in 2 months

push eventyorkie/tfjs

Na Li

commit sha 8c5c1456e2e6c68380b97fb20055836c4c7b1b7d

Fix find-affected-packages logging. Fix Nightly build. (#2908) BUG INTERNAL * Fix find-affected-packages logging. * Fix Nightly build.

view details

Yannick Assogba

commit sha e7fd9ab70a9091687404d3ebfcf89037276276cb

[tfjs-vis] update readme, add more screenshots (#2914) INTERNAL DOC

view details

Na Li

commit sha 95208bd291fb283edaee44a6378f1aaa6b6ae7b5

Automate create branch. (#2916)

view details

Na Li

commit sha 68b830c0bf1a0661c213ec0b6d89f7cf95f7a40e

Remove link-master. Refactor test steps. (#2913)

view details

Yannick Assogba

commit sha f8e30077db65dfa89a5f04382440622e587ebc59

modularize broadcastTo op (#2919) INTERNAL

view details

Na Li

commit sha 284b35299e37ed4287a151dd6d9bf23ffae5f04b

Refactor release script. (#2921)

view details

Yannick Assogba

commit sha 6da3fa8606f025de90736696b7861f53aad04c8b

move inputsToSave and outputsToSave to gradConfig (#2925) INTERNAL

view details

Ping Yu

commit sha 44fe76dba3d35a8840124a9b008e3824f19baaa7

Revert "made visibility public (#2893)" (#2902) INTERNAL This reverts commit f4c5466ea9c45fe2d0ccf0c9c9d701e1f448ee2d.

view details

Yannick Assogba

commit sha 7f6c78a094074caf3163c2ae57a623a2d4a5dbcc

Modularize random distribution tensor creation ops (#2939) INTERNAL

view details

Yannick Assogba

commit sha 42b2f49627f10051b1d9a5ebda89f8b78ff9d231

modularise clone op (#2935) INTERNAL

view details

Na Li

commit sha bb9d31d1e17ec81998d4621d2d6066da0eb0bd12

Create publish-npm.ts (#2928)

view details

Na Li

commit sha bc228dc553da0714bafbe916d3a39d7fb3ad702f

[wasm] Test against head. (#2953)

view details

Yannick Assogba

commit sha 3ae46f27bfa714e28d78567f1affe2c73f01c638

[tfjs-core] Modularize onehot INTERNAL

view details

Na Li

commit sha 51d5568fb0419930429369ad15c544682557a50e

Fix bugs in release and publish scripts. (#2952)

view details

Na Li

commit sha b3f17bb7d588e059cb4408cad6896e516352f627

Remove master branch version update. (#2958)

view details

Yannick Assogba

commit sha 315534bec27f5dd5c0ffd94fa9e71cefa7664cf4

[tfjs-core] Modularize eye and tile ops INTERNAL

view details

Yorkie Liu

commit sha e01bab3b838ad042d5597425feb932917f930855

gallery: fix a typo in libs using tensorflow.js (#2771) DOC Co-authored-by: Kangyi Zhang <kangyizhang@google.com>

view details

Na Li

commit sha 956672f5fed7439431f1a93aac4953b86891da5a

[core] Move variations of the same set of tests to nightly. (#2960)

view details

Ann Yuan

commit sha fb711cfd9141e13b88ec1cb4a00015a7348d0135

[core] Modularize Div, DivNoNan. (#2946) FEATURE

view details

Na Li

commit sha 795249ff96ba854567c95c0ecd93bbae60cd8162

Properly propagate NIGHTLY flag. (#2965)

view details

push time in 2 months

push eventkangyizhang/tfjs

Kai Ninomiya

commit sha af1040d234f66d8f2d13a87796c630939ea09b5e

webgpu: benchmark: reps per trial (#1690) INTERNAL

view details

Shanqing Cai

commit sha ecba54f0858debd53483f80c944d9607cda78474

[benchmarks] Add tfjs-node and tfjs-node-gpu benchmarks (Layers API) (#1512) - Use the new command `yarn benchmark --layers --tfjs-node` to benchmark the CPU version of tfjs-node. - Use the new command `yarn benchmark --layers --tfjs-node-gpu` to benchmark the GPU (CUDA) version of tfjs-node (i.e., tfjs-node-gpu) - When tfjs-node-gpu is being benchmarked, the GPU version of tensorflow (Python) is benchmarked for comparison. Towards https://github.com/tensorflow/tfjs/issues/874 DEV PERF

view details

Nikhil Thorat

commit sha 2e3459f1903cd9d9a836a6b364b93a057ab85c8c

Update release notes to include tfjs-node. (#1535) Also: - Converts the script to an interactive CLI - Whitelists googler usernames so they aren't thanked (we thank you with a salary) Preview: https://github.com/tensorflow/tfjs/releases/tag/untagged-6732284f08d216ba4a98 Fixes https://github.com/tensorflow/tfjs/issues/1349 and https://github.com/tensorflow/tfjs/issues/1407

view details

Daniel Smilkov

commit sha 00ead5c66edb915a4d18cfec2431bd867d69535b

Update test-ci.sh (#182) INTERNAL Remove the nightly logic to avoid double-linking, since the linking happens by the central nightly test: https://github.com/tensorflow/tfjs-core/blob/master/scripts/test-integration.sh#L54

view details

Daniel Smilkov

commit sha b5cb4fcae27fad6e7cf2960ab220b368d796de32

save

view details

Daniel Smilkov

commit sha 5ec430763b197d0b3ffb0b921c91b20adf8df4ed

Revert "save" This reverts commit b5cb4fcae27fad6e7cf2960ab220b368d796de32.

view details

Daniel Smilkov

commit sha dc13cb4e0ae3e7fadee5a082a662f8e970d72a05

Update test-ci.sh (#530) DEV Remove the nightly logic to avoid double-linking, since the linking happens by the central nightly test: https://github.com/tensorflow/tfjs-core/blob/master/scripts/test-integration.sh#L32 Also remove the duplicate `yarn build` from `tfjs2keras-js` to avoid race condition of typescript compiler which can result in https://github.com/Microsoft/TypeScript/issues/22423

view details

Jason Shin

commit sha 74b4edef368aa39decc6073af735f81d112bafd8

Adding machinelearn.js to GALLERY.md (#1540) Hi, as discussed in the other PR opened in tfjs-website project, https://github.com/tensorflow/tfjs-website/pull/298, I'd like to add a link to machinelearn.js in GALLERY.md. Thank you =)

view details

Daniel Smilkov

commit sha 95a213956696b05f0c21f7b88fd588b61d105c00

Fix integration nightly test (#1703) INTERNAL

view details

Ping Yu

commit sha 5fb25843e1639191026d9b570c1bed619ba73863

use tf 2.0 pip instead of nightly build (#354) * use tf 2.0 pip instead of nightly build * fix pip package test

view details

Kai Ninomiya

commit sha 7f26888f77da845a1ab16c2c710d48b126e262a9

webgpu: uniforms, makeBindGroup/Layout, non-square tiles (#1689) INTERNAL

view details

Ann Yuan

commit sha 60932f0f635ae6ba30276b7071a0a15469dabc76

WebGPU: Increase work per thread for matMul. (#1695) INTERNAL

view details

Nikhil Thorat

commit sha 41c76dc746d0901f34d515da1a63ef3912322869

Fix environment flag URL parsing when the value is false. (#1705) BUG Currently if you pass a false in the URL we parse it as true. Turns out `Boolean('false') === true`.

view details

Ann Yuan

commit sha 37cf128fe0abcdcf939accf7e2b1bafc9f0b20c7

Fix bug with broadcasting scalars in packed ops. (#1706) BUG

view details

Nikhil Thorat

commit sha 523385e805afd7e8ec62c00c8ad310054e48cd6f

Update the converter lock file. (#355) BUG I forgot to do this in the last PR :/

view details

Shanqing Cai

commit sha 4f9e1fbe27e1aa873835c14dd7ae83cad399320c

Update the documentation of tf.variableGrads() (#1707) DOC

view details

Daniel Smilkov

commit sha 794758f2f71544577c0fccdac915610a41c44e7d

Allow for registration of backends with async initialization (#1701) FEATURE Some backends can only be initialized in an async way (e.g. WebGPU, Wasm etc). However the current backend registry requires that backends are initialized immediately. This change relaxes that constraint, allowing `tf.registerBackend(factory)` where `factory` can return either a `KernelBackend`, or a `Promise<KernelBackend>`. It also introduces `tf.ready(): Promise<void>` which users can call to make sure they await for their backend to initialize. If an op is called without awaiting for the backend to be ready, we throw an Error reminding the user to call `await tf.ready()`. Also: - Add CI build and lint for webgpu (no karma yet b/c it requires a custom build of Chrome) - Allow tests in core to be included selectively in a karma run in webgpu

view details

Shanqing Cai

commit sha 8aab26e693d301bcc0270b341f4b752270e6fe8c

Fix bug in which setting model.trainable doesn't affect weight.trainable (#531) BUG Fixes https://github.com/tensorflow/tfjs/issues/1545

view details

iislucas

commit sha 68375f5eab8e5d8b39a2bd2b185b9ac490be1605

Fix docs argument order for fused.matMut (#1712) DOC The argument order in the comment for [`fused.matMut`](https://js.tensorflow.org/api/latest/#fused.matMul) doesn't match the argument order in the code, resulting in this error when you try to run the example code: ``` An error occured on line: 5 Argument 'bias' passed to 'fused matMul' must be numeric tensor, but got string tensor ``` This PR fixes the argument order in the comment to match the code, and renames 'c' to 'bias' in the comment to make it clearer that that argument is the bias argument. It also adds `.print();` to the computed tensor so that we can see the result.

view details

Daniel Smilkov

commit sha 7ab50371e4b87deeaf023e74a33aea748165353c

Add onYield callback to model.fit() (#506) FEATURE PERF Add onYield callback to `model.fit()`. See the PR that updates the Mnist example https://github.com/tensorflow/tfjs-examples/pull/257 using this callback. The previous auto-yield logic was yielding every 16ms, thus slowing down the training. The new auto-yield will default to `125ms`, thus speeding up the training in our examples up to `5x`. **Details** - `yieldEvery` will take a number: how often (in ms) to yield the main thread to the user. This is in addition to the existing 'auto'|'batch'|'epoch'|'never', so there are no breaking changes. - `yieldEvery: 'auto'` logic gets simplified and will default to 125ms. - Add a new user-facing fit callback: `onYield: (epoch, batch, logs) => {...}` which gets called every time we yield to the main thread. - Expand the jsdocs for the fit callbacks. - Error when the user sets `yieldEvery: 'never'` but also provided an `onYield` callback.

view details

push time in 2 months

PR opened tensorflow/tfjs

[node] Clean up dependency of tfc and tfl in node tests

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

+31 -36

0 comment

3 changed files

pr created time in 2 months

create barnchtensorflow/tfjs

branch : clean-tfc-tfl-deps

created branch time in 2 months

issue closedtensorflow/tfjs

Cannot run @tensorflow/tfjs-node on OSX

TensorFlow.js version

"name": "@tensorflow/tfjs-node", "version": "1.7.0",

macOS Catalina v10.15.03

node -v Anything between the v12.11.1 and @latest (currently v13.10.1)

Tested with:

    node/10.16.3
    node/11.15.0
    node/12.0.0
    node/12.8.1
    node/12.10.0
    node/12.11.1
    node/12.12.0
    node/13.9.0
    node/13.10.1

Describe the problem or feature request

@kangyizhang I tried all various suggestions from the (closed) #2003 still issues with latest node.

Still the same error "Error: Cannot find module '.../node_modules/@tensorflow/tfjs-node/lib/napi-v5/tfjs_binding.node'"

With "@tensorflow/tfjs-node" I managed now with the latest version 1.7.0, but ONLY using earlier node:

node -v v12.10.0 (the next v12.11.1 is crashing, also the same with the currently latest node v13.10.1)

Obviously, this is far from ideal as we need to propagate node version changes on the production servers, and as we have both frontend and backend tf, we might need to reduce frontend version to not risk compatibility issues or keep them version-async (as with the previous versions it was crashing on the backend so I HAD to reduce tfjs on v1.5.2, etc)

And even then I get the incompatibility issue with compiling aspect:

node-pre-gyp info This Node instance does not support builds for N-API version 5

And I get the more expected warning :) "Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA"

Code to reproduce the bug / link to feature request

Here is the minimal code:

package.json
{
  "name": "tfjs-node-test",
  "description": "backend test of tfjs",
  "version": "0.0.1",
  "private": true,
  "repository": {
    "type": "git",
    "url": ""
  },
  "scripts": {
    "start": "node dist/index 8002",
    "clean_full": "rm -r node_modules/; rm package-lock.json; rm -r dist/; rm yarn.lock; rm -r puzzles/*/*/node_modules; rm -r puzzles/*/*/dist; rm -r puzzles/*/*/yarn.lock; rm -r puzzles/*/*/package-lock.json"
  },
  "main": "dist/index.js",
  "module": "dist/index.js",
  "dependencies": {
    "@tensorflow/tfjs-node": "^1.7.0"
  },
  "devDependencies": {
    "@types/node": "^13.9.0"
  }
}
ts
console.log("[tfjs-test] started");

import * as tfNode from '@tensorflow/tfjs-node';
let _tf = tfNode;

console.log("[tfjs-test] finished");
js

Here is also JS compiled version:

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
console.log("[tfjs-test] started");
const tfNode = require("@tensorflow/tfjs-node");
let _tf = tfNode;
console.log("[tfjs-test] finished");
//# sourceMappingURL=index.js.map
tsconfig.js
{
    "compilerOptions": {
        "target": "es6",
        "module": "commonjs",
        "moduleResolution": "node",
        "sourceMap": true,
        "rootDir": "./",
        "allowJs": true,
        "outDir": "dist",
        "preserveConstEnums": true,
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        "allowSyntheticDefaultImports": true,
        "removeComments": false,
        "noImplicitAny": false,
        "listFiles": false,
        "skipLibCheck": true,
        "lib": [
            "es6",
            "dom"
        ]
    },
    "allowSyntheticDefaultImports": false,
    "files": [
        "index.ts"
    ],
    "include": [
        "config"
    ],
    "exclude": [
        "**/*d.ts"
    ],
    "compileOnSave": false
}

closed time in 2 months

mprinc
more