tfjs 2.0.1 prints extraneous overriding lines to console on startup

Created on 30 Jun 2020  路  4Comments  路  Source: tensorflow/tfjs

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

TensorFlow.js version

tfjs-node 2.0.1

Browser version

node v12.13.1

Describe the problem or feature request

Use the following reproduction code: const tf = require("@tensorflow/tfjs-node");

In the console, when tfjs-node is imported, I see the lines:

Overriding the gradient for 'Max'
Overriding the gradient for 'OneHot'
Overriding the gradient for 'PadV2'
Overriding the gradient for 'SpaceToBatchND'
Overriding the gradient for 'SplitV'

This seems a little unexpected and distracting. For one thing, most users may not even use these ops's gradients.

bug

Most helpful comment

This fix will roll out in the next release.

All 4 comments

This happens in the browser, outside of Node.js, too.

This fix will roll out in the next release.

Are there any temporary workarounds to this?

you could do node index.js 2>/dev/null on unix machines

note: this will suppress error messages aswell.

Was this page helpful?
0 / 5 - 0 ratings