()
| 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.'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…