MCPcopy
hub / github.com/tensorflow/tfjs / scalar

Method scalar

tfjs-node/src/tensorboard.ts:42–51  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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'

Callers 15

scaleTo01Function · 0.80
r2ScoreFunction · 0.80
recurrent_test.tsFile · 0.80
precisionTestRunnerFunction · 0.80
produceStylizedMethod · 0.80
globals_test.tsFile · 0.80
gradients_test.tsFile · 0.80
gradFuncFunction · 0.80
tape_test.tsFile · 0.80

Calls 1

writeScalarSummaryMethod · 0.80

Tested by

no test coverage detected