MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _get_summary_name

Function _get_summary_name

tensorflow/contrib/slim/python/slim/summaries.py:42–60  ·  view source on GitHub ↗

Produces the summary name given. Args: tensor: A variable or op `Tensor`. name: The optional name for the summary. prefix: An optional prefix for the summary name. postfix: An optional postfix for the summary name. Returns: a summary name.

(tensor, name=None, prefix=None, postfix=None)

Source from the content-addressed store, hash-verified

40
41
42def _get_summary_name(tensor, name=None, prefix=None, postfix=None):
43 """Produces the summary name given.
44
45 Args:
46 tensor: A variable or op `Tensor`.
47 name: The optional name for the summary.
48 prefix: An optional prefix for the summary name.
49 postfix: An optional postfix for the summary name.
50
51 Returns:
52 a summary name.
53 """
54 if not name:
55 name = tensor.op.name
56 if prefix:
57 name = prefix + '/' + name
58 if postfix:
59 name = name + '/' + postfix
60 return name
61
62
63def add_histogram_summary(tensor, name=None, prefix=None):

Callers 4

add_histogram_summaryFunction · 0.85
add_image_summaryFunction · 0.85
add_scalar_summaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected