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

Method inputs

tfjs-node/src/saved_model.ts:209–216  ·  view source on GitHub ↗

* Return the array of input tensor info. * * @doc {heading: 'Models', subheading: 'SavedModel'}

()

Source from the content-addressed store, hash-verified

207 * @doc {heading: 'Models', subheading: 'SavedModel'}
208 */
209 get inputs(): ModelTensorInfo[] {
210 const entries = this.signature.inputs;
211 const results = Object.keys(entries).map((key: string) => entries[key]);
212 results.forEach((info: ModelTensorInfo) => {
213 info.name = info.name.replace(/:0$/, '');
214 });
215 return results;
216 }
217
218 /**
219 * Return the array of output tensor info.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected