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

Method outputs

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

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

()

Source from the content-addressed store, hash-verified

221 * @doc {heading: 'Models', subheading: 'SavedModel'}
222 */
223 get outputs(): ModelTensorInfo[] {
224 const entries = this.signature.outputs;
225 const results = Object.keys(entries).map((key: string) => entries[key]);
226 results.forEach((info: ModelTensorInfo) => {
227 info.name = info.name.replace(/:0$/, '');
228 });
229 return results;
230 }
231
232 /**
233 * Delete the SavedModel from nodeBackend and delete corresponding session in

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected