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

Method stopTraining

tfjs-layers/src/engine/training.ts:1897–1899  ·  view source on GitHub ↗

* Setter used for force stopping of LayersModel.fit() (i.e., training). * * Example: * * ```js * const input = tf.input({shape: [10]}); * const output = tf.layers.dense({units: 1}).apply(input); * const model = tf.model({inputs: [input], outputs: [output]}); * model.compile({

(stop: boolean)

Source from the content-addressed store, hash-verified

1895 * ```
1896 */
1897 set stopTraining(stop: boolean) {
1898 this.stopTraining_ = stop;
1899 }
1900
1901 get stopTraining(): boolean {
1902 return this.stopTraining_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected