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

Function isDataDict

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

Source from the content-addressed store, hash-verified

63 * Helper function for polymorphic input data: 3. "dict" of Tensor.
64 */
65export function isDataDict(x: Tensor|Tensor[]|
66 {[inputName: string]: Tensor}): boolean {
67 return !isDataTensor(x) && !isDataArray(x);
68}
69
70/**
71 * Normalizes inputs and targets provided by users.

Callers 2

training_test.tsFile · 0.90
standardizeInputDataFunction · 0.85

Calls 2

isDataTensorFunction · 0.85
isDataArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…