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

Function fullDefinedShape

tfjs-converter/src/executor/tensor_utils.ts:53–58  ·  view source on GitHub ↗
(elementShape: number|number[])

Source from the content-addressed store, hash-verified

51}
52
53export function fullDefinedShape(elementShape: number|number[]): boolean {
54 if (typeof elementShape === 'number' || elementShape.some(dim => dim < 0)) {
55 return false;
56 }
57 return true;
58}
59/**
60 * Generate the output element shape from the list elementShape, list tensors
61 * and input param.

Callers 1

inferElementShapeFunction · 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…