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

Method summary

tfjs-layers/src/models.ts:662–671  ·  view source on GitHub ↗

* Print a text summary of the Sequential model's layers. * * The summary includes * - Name and type of all layers that comprise the model. * - Output shape(s) of the layers * - Number of weight parameters of each layer * - The total number of trainable and non-trainable parameters

(
      lineLength?: number, positions?: number[],
      printFn:
          // tslint:disable-next-line:no-any
      (message?: any, ...optionalParams: any[]) => void = console.log)

Source from the content-addressed store, hash-verified

660 * @doc {heading: 'Models', subheading: 'Classes'}
661 */
662 override summary(
663 lineLength?: number, positions?: number[],
664 printFn:
665 // tslint:disable-next-line:no-any
666 (message?: any, ...optionalParams: any[]) => void = console.log) {
667 if (!this.built) {
668 this.build();
669 }
670 super.summary(lineLength, positions, printFn);
671 }
672
673 /**
674 * Sets the weights of the model.

Callers 1

Calls 1

buildMethod · 0.95

Tested by

no test coverage detected