Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorflow/tfjs
/ f
Function
f
tfjs-core/src/debug_mode_test.ts:87–87 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
85
86
it(
'debug mode errors when nans in oneHot op (tensorlike), int32'
, () => {
87
const
f = () => tf.oneHot([2, NaN], 3);
88
expect(f).toThrowError();
89
});
90
Callers
nothing calls this directly
Calls
1
oneHot
Method · 0.80
Tested by
no test coverage detected