We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
It seems F.relu(NaN) returns 0, where NaN is expected. Here's a code sample:
console.log(`debug-cpu: ${(await (await F.relu(new K.nn.Variable(T.fromArray([NaN])))).data.to('cpu')).toArray()}`); console.log(`debug-webgl: ${(await (await F.relu(new K.nn.Variable(await T.fromArray([NaN]).to('webgl')))).data.to('cpu')).toArray()}`);
And I got:
debug-cpu: 0 debug-webgl: 0
It seems the grad also returns 0 for NaN input (I did't confirm it well), where NaN is expected.
The text was updated successfully, but these errors were encountered:
https://stackoverflow.com/questions/37532640/making-a-nan-on-purpose-in-webgl Whether or not NaN is implemented depends on the model, and it is difficult to handle well.
Sorry, something went wrong.
No branches or pull requests
Hi,
It seems F.relu(NaN) returns 0, where NaN is expected. Here's a code sample:
And I got:
It seems the grad also returns 0 for NaN input (I did't confirm it well), where NaN is expected.
The text was updated successfully, but these errors were encountered: