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

Function assertNonNull

tfjs-core/src/util_base.ts:164–168  ·  view source on GitHub ↗
(a: TensorLike)

Source from the content-addressed store, hash-verified

162}
163
164export function assertNonNull(a: TensorLike): void {
165 assert(
166 a != null,
167 () => `The input to the tensor constructor must be a non-null value.`);
168}
169
170/**
171 * Returns the size (number of elements) of the tensor given its shape.

Callers 6

tensor2dFunction · 0.90
tensor5dFunction · 0.90
tensor4dFunction · 0.90
tensor3dFunction · 0.90
tensor1dFunction · 0.90
tensor6dFunction · 0.90

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…