* Write a scalar summary. * * @param name A name of the summary. The summary tag for TensorBoard will be * this name. * @param value A real numeric scalar value, as `tf.Scalar` or a JavaScript * `number`. * @param step Required `int64`-castable, monotonically-increasing step va
(
name: string, value: Scalar|number, step: number, description?: string)
| 40 | * `string`. *Not implemented yet*. |
| 41 | */ |
| 42 | scalar( |
| 43 | name: string, value: Scalar|number, step: number, description?: string) { |
| 44 | // N.B.: Unlike the Python TensorFlow API, step is a required parameter, |
| 45 | // because the construct of global step does not exist in TensorFlow.js. |
| 46 | if (description != null) { |
| 47 | throw new Error('scalar() does not support description yet'); |
| 48 | } |
| 49 | |
| 50 | this.backend.writeScalarSummary(this.resourceHandle, step, name, value); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Write a histogram summary, for later analysis in TensorBoard's 'Histograms' |
no test coverage detected