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

Function assertNotComplex

tfjs-backend-webgpu/src/webgpu_util.ts:162–175  ·  view source on GitHub ↗
(
    tensor: TensorInfo|TensorInfo[], opName: string)

Source from the content-addressed store, hash-verified

160}
161
162export function assertNotComplex(
163 tensor: TensorInfo|TensorInfo[], opName: string): void {
164 if (!Array.isArray(tensor)) {
165 tensor = [tensor];
166 }
167 tensor.forEach(t => {
168 if (t != null) {
169 util.assert(
170 t.dtype !== 'complex64',
171 () => `${opName} does not support complex64 tensors ` +
172 'in the WebGPU backend.');
173 }
174 });
175}
176
177export enum MatMulProgramType {
178 MatMulReduceProgram,

Callers 2

avgPoolGradFunction · 0.90
maxPoolGradFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…