tf.contrib.layers.summarize_tensor
Stay organized with collections
Save and categorize content based on your preferences.
Summarize a tensor using a suitable summary type.
tf.contrib.layers.summarize_tensor(
tensor, tag=None
)
This function adds a summary op for tensor
. The type of summary depends on
the shape of tensor
. For scalars, a scalar_summary
is created, for all
other tensors, histogram_summary
is used.
Args |
tensor
|
The tensor to summarize
|
tag
|
The tag to use, if None then use tensor's op's name.
|
Returns |
The summary op created or None for string tensors.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.contrib.layers.summarize_tensor\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/layers/python/layers/summaries.py#L107-L132) |\n\nSummarize a tensor using a suitable summary type. \n\n tf.contrib.layers.summarize_tensor(\n tensor, tag=None\n )\n\nThis function adds a summary op for `tensor`. The type of summary depends on\nthe shape of `tensor`. For scalars, a `scalar_summary` is created, for all\nother tensors, `histogram_summary` is used.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------|------------------------------------------------------|\n| `tensor` | The tensor to summarize |\n| `tag` | The tag to use, if None then use tensor's op's name. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| The summary op created or None for string tensors. ||\n\n\u003cbr /\u003e"]]