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

Function saveIterations

tfjs-core/src/optimizers/optimizer.ts:133–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }
132
133 async saveIterations(): Promise<NamedTensor> {
134 if (this.iterations_ == null) {
135 this.iterations_ = 0;
136 }
137 return {
138 name: 'iter', // Named for Python compatibility.
139 // TODO(cais): Use 'int64' type when available.
140 tensor: scalar(this.iterations_, 'int32')
141 };
142 }
143
144 async getWeights(): Promise<NamedTensor[]> {
145 throw new Error('getWeights() is not implemented for this optimizer yet.');

Callers

nothing calls this directly

Calls 1

scalarFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…