MCPcopy
hub / github.com/tensorflow/tfjs / describeMathCPUAndWebGL2

Function describeMathCPUAndWebGL2

tfjs-layers/src/utils/test_utils.ts:99–108  ·  view source on GitHub ↗
(testName: string, tests: () => void)

Source from the content-addressed store, hash-verified

97 * @param tests
98 */
99export function describeMathCPUAndWebGL2(testName: string, tests: () => void) {
100 describeWithFlags(
101 testName, {
102 predicate: testEnv =>
103 (testEnv.flags == null || testEnv.flags['WEBGL_VERSION'] === 2)
104 },
105 () => {
106 tests();
107 });
108}
109
110/**
111 * Describe tests to be run on CPU only.

Callers 14

models_test.tsFile · 0.90
model_save_test.tsFile · 0.90
losses_test.tsFile · 0.90
metrics_test.tsFile · 0.90
training_test.tsFile · 0.90
merge_test.tsFile · 0.90
recurrent_test.tsFile · 0.90
core_test.tsFile · 0.90

Calls 1

describeWithFlagsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…