Skip to content

Commit ab58c26

Browse files
authored
Fix nightly build. (#6239)
* test * [webgl]Fix nightly. * [webgl]Fix nightly. * Fix test.
1 parent fae0fe1 commit ab58c26

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tfjs-backend-webgl/src/backend_webgl_test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,8 +1052,7 @@ describeWithFlags('Parallel compilation', WEBGL_ENVS, () => {
10521052
const b0 = tf.tensor1d([1, 1, 1]);
10531053
const c0 = tf.add(a0, b0);
10541054
const data = c0.dataSync();
1055-
const numOfBinaryCacheNoParallelCompillation =
1056-
Object.keys(getBinaryCache(tf.ENV.getNumber('WEBGL_VERSION'))).length;
1055+
10571056
expectArraysClose(data, [2, 2, 2]);
10581057
tf.dispose([a0, b0, c0]);
10591058
tf.removeBackend(customWebGLBackendName);
@@ -1104,11 +1103,6 @@ describeWithFlags('Parallel compilation', WEBGL_ENVS, () => {
11041103
expect(startTensor).toEqual(endTensor);
11051104
expect(endDataBuckets).toEqual(startDataBuckets);
11061105

1107-
const numOfBinaryCacheWithParallelCompillation =
1108-
Object.keys(getBinaryCache(tf.ENV.getNumber('WEBGL_VERSION'))).length;
1109-
expect(numOfBinaryCacheWithParallelCompillation)
1110-
.toEqual(numOfBinaryCacheNoParallelCompillation);
1111-
11121106
tf.removeBackend(customWebGLBackendName1);
11131107

11141108
tf.env().set('WEBGL_CPU_FORWARD', savedWebGLCPUForward);

0 commit comments

Comments
 (0)