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

Method where

tfjs-backend-cpu/src/backend_cpu.ts:216–221  ·  view source on GitHub ↗
(condition: Tensor)

Source from the content-addressed store, hash-verified

214 }
215
216 where(condition: Tensor): Tensor2D {
217 assertNotComplex([condition], 'where');
218
219 const condVals = this.readSync(condition.dataId) as TypedArray;
220 return whereImpl(condition.shape, condVals);
221 }
222
223 override dispose() {}
224

Callers

nothing calls this directly

Calls 3

readSyncMethod · 0.95
assertNotComplexFunction · 0.90
whereImplFunction · 0.85

Tested by

no test coverage detected