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

Function isDataTensor

tfjs-layers/src/engine/training.ts:49–52  ·  view source on GitHub ↗
(x: Tensor|Tensor[]|{[inputName: string]: Tensor}|
                             {[inputName: string]: Tensor[]})

Source from the content-addressed store, hash-verified

47 * Helper function for polymorphic input data: 1. singleton Tensor.
48 */
49export function isDataTensor(x: Tensor|Tensor[]|{[inputName: string]: Tensor}|
50 {[inputName: string]: Tensor[]}): boolean {
51 return x instanceof Tensor;
52}
53
54/**
55 * Helper function for polymorphic input data: 2. Array of Tensor.

Callers 2

training_test.tsFile · 0.90
isDataDictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…