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

Method setModel

tfjs-node/src/callbacks.ts:268–275  ·  view source on GitHub ↗
(model: LayersModel)

Source from the content-addressed store, hash-verified

266 }
267
268 setModel(model: LayersModel): void {
269 // This method is inherited from BaseCallback. To avoid cyclical imports,
270 // that class uses Container instead of LayersModel, and uses a run-time
271 // check to make sure the model is a LayersModel.
272 // Since this subclass isn't imported by tfjs-layers, we can safely use type
273 // the parameter as a LayersModel.
274 this.model = model;
275 }
276
277 private logMetrics(logs: Logs, prefix: string, step: number) {
278 for (const key in logs) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected