MCPcopy Create free account
hub / github.com/tensorflow/tfjs / customInclude

Function customInclude

tfjs-backend-webgl/src/setup_test.ts:35–55  ·  view source on GitHub ↗
(testName: string)

Source from the content-addressed store, hash-verified

33const TEST_FILTERS: TestFilter[] = [];
34
35const customInclude = (testName: string) => {
36 const toExclude = [
37 'isBrowser: false',
38 'dilation gradient',
39 'throws when index is out of bound',
40 // otsu tests for threshold op is failing on windows
41 'method otsu',
42 'draw on canvas context',
43 // https://github.com/tensorflow/tfjs/issues/7618
44 'numbers exceed float32 precision',
45 // float32 inputs with nonzero fractional part should not be rounded
46 'floorDiv float32',
47 ];
48 for (const subStr of toExclude) {
49 if (testName.includes(subStr)) {
50 return false;
51 }
52 }
53 // TODO(msoulanille): Prefer TEST_FILTERS over customInclude.
54 return true;
55};
56setupTestFilters(TEST_FILTERS, customInclude);
57
58// Allow flags to override test envs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…