MCPcopy Index your code
hub / github.com/tensorflow/tfjs / f

Function f

tfjs-core/src/tensor_test.ts:467–470  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

465
466 it('tensor4d() from number[][][][], but shape does not match', () => {
467 const f = () => {
468 // Actual shape is [2, 2, 1, 1].
469 tf.tensor4d([[[[1]], [[2]]], [[[4]], [[5]]]], [2, 1, 2, 1]);
470 };
471 expect(f).toThrowError();
472 });
473

Callers 15

scopedRunMethod · 0.70
forwardFuncMethod · 0.70
gradFunction · 0.70
gradsFunction · 0.70
valueAndGradFunction · 0.70
valueAndGradsFunction · 0.70
holdResultWrapperFnMethod · 0.70
browser_util.tsFile · 0.70
timeMethod · 0.50
timeMethod · 0.50
memoizeFunction · 0.50
retryFunction · 0.50

Calls 2

powMethod · 0.80
scalarMethod · 0.80

Tested by

no test coverage detected