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)
| 40 | |
| 41 | |
| 42 | def _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 | |
| 63 | def add_histogram_summary(tensor, name=None, prefix=None): |
no outgoing calls
no test coverage detected