question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update batch norm reference in tfjs-node

See original GitHub issue

Looks like a new OpDef is ready (and current one is deprecated):

tf.batchNormalization() is going away. Use tf.batchNorm() instead, and note the positional argument change of scale, offset, and varianceEpsilon You can disable deprecation warnings with tf.disableDeprecationWarnings().
tf.batchNormalization() is going away. Use tf.batchNorm() instead, and note the positional argument change of scale, offset, and varianceEpsilon You can disable deprecation warnings with tf.disableDeprecationWarnings().

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nkreegercommented, Jul 8, 2019

Actually - this might need to be a cleanup in tfjs-core:

$ git grep batchNormalization
...
src/ops/batchnorm_test.ts:907:describeWithFlags('deprecated batchNormalization', ALL_ENVS, () => {
src/ops/batchnorm_test.ts:917:    const result = tf.batchNormalization(
src/ops/batchnorm_test.ts:941:    const result2 = tf.batchNormalization2d(
src/tensor.ts:863:  batchNormalization(
src/tensor.ts:869:        'tf.batchNormalization() is going away. ' +
0reactions
rthadurcommented, Aug 12, 2021

Related PR has been merged here https://github.com/tensorflow/tfjs/pull/3238 , closing this issue, Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to update variable of BatchNorm in multiple GPUs in ...
I suspect the performance problems have to do with you doing several variables updates per step (from each batch norm in each tower)....
Read more >
Creates a tf.Tensor with the provided values, shape and dtype.
1 - In Node.js (tfjs-node), prints the progress bar, together with real-time updates of loss and metric values and training speed. In the...
Read more >
Tensorflow.js tf.batchNorm() Function - GeeksforGeeks
The .batchNorm() function is useful in batch normalization. Moreover, the mean, variance, scale, including offset can be of two shapes:.
Read more >
Batch normalization in 3 levels of understanding
An updated explanation of Batch Normalization through 3 levels of understanding : in 30 seconds, 3 minutes, and a comprehensive guide ...
Read more >
tfjs/batchnorm.ts at master · tensorflow/tfjs - GitHub
A WebGL accelerated JavaScript library for training and deploying ML models. - tfjs/batchnorm.ts at master · tensorflow/tfjs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found