MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / create_scalar_summary

Function create_scalar_summary

tensorpack/tfutils/summary.py:41–53  ·  view source on GitHub ↗

Args: name (str): v (float): scalar value Returns: tf.Summary: a tf.Summary object with name and simple scalar value v.

(name, v)

Source from the content-addressed store, hash-verified

39
40
41def create_scalar_summary(name, v):
42 """
43 Args:
44 name (str):
45 v (float): scalar value
46 Returns:
47 tf.Summary: a tf.Summary object with name and simple scalar value v.
48 """
49 assert isinstance(name, six.string_types), type(name)
50 v = float(v)
51 s = tf.Summary()
52 s.value.add(tag=name, simple_value=v)
53 return s
54
55
56def create_image_summary(name, val):

Callers 1

put_scalarMethod · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected