@tensorflow/tfjs-layers
Version:
TensorFlow layers API in JavaScript
28 lines (27 loc) • 1.31 kB
TypeScript
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
/// <amd-module name="@tensorflow/tfjs-layers/dist/utils/layer_utils" />
import { Container } from '../engine/container';
/**
* Print the summary of a LayersModel object.
*
* @param model tf.LayersModel instance.
* @param lineLength Total length of printed lines. Set this to adapt to the
* display to different terminal or console sizes.
* @param positions Relative or absolute positions of log elements in each
* line. Each number corresponds to right-most (i.e., ending) position of a
* column.
* If not provided, defaults to `[0.45, 0.85, 1]` for sequential-like
* models and `[0.33, 0.55, 0.67, 1]` for non-sequential like models.
* @param printFn Print function to use.
* It will be called on each line of the summary. You can provide a custom
* function in order to capture the string summary. Defaults to `console.log`.
*/
export declare function printSummary(model: Container, lineLength?: number, positions?: number[], printFn?: (message?: any, ...optionalParams: any[]) => void): void;