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

Function isTensorInList

tfjs-core/src/tensor_util.ts:38–40  ·  view source on GitHub ↗
(tensor: Tensor, tensorList: Tensor[])

Source from the content-addressed store, hash-verified

36}
37
38export function isTensorInList(tensor: Tensor, tensorList: Tensor[]): boolean {
39 return tensorList.some(x => x.id === tensor.id);
40}
41
42/**
43 * Extracts any `Tensor`s found within the provided object.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…