tf.raw_ops.DebugNumericSummary
Stay organized with collections
Save and categorize content based on your preferences.
Debug Numeric Summary Op.
tf.raw_ops.DebugNumericSummary(
input,
device_name='',
tensor_name='',
debug_urls=[],
lower_bound=float('-inf'),
upper_bound=float('inf'),
mute_if_healthy=False,
gated_grpc=False,
name=None
)
Provide a basic summary of numeric value types, range and distribution.
output: A double tensor of shape [14 + nDimensions], where nDimensions is the
number of dimensions of the tensor's shape. The elements of output are:
[0]: is initialized (1.0) or not (0.0).
[1]: total number of elements
[2]: NaN element count
[3]: generalized -inf count: elements <= lower_bound. lower_bound is -inf by
default.
[4]: negative element count (excluding -inf), if lower_bound is the default
-inf. Otherwise, this is the count of elements > lower_bound and < 0.
[5]: zero element count
[6]: positive element count (excluding +inf), if upper_bound is the default
+inf. Otherwise, this is the count of elements < upper_bound and > 0.
[7]: generalized +inf count, elements >= upper_bound. upper_bound is +inf by
default.
Output elements [1:8] are all zero, if the tensor is uninitialized.
[8]: minimum of all non-inf and non-NaN elements.
If uninitialized or no such element exists: +inf.
[9]: maximum of all non-inf and non-NaN elements.
If uninitialized or no such element exists: -inf.
[10]: mean of all non-inf and non-NaN elements.
If uninitialized or no such element exists: NaN.
[11]: variance of all non-inf and non-NaN elements.
If uninitialized or no such element exists: NaN.
[12]: Data type of the tensor encoded as an enum integer. See the DataType
proto for more details.
[13]: Number of dimensions of the tensor (ndims).
[14+]: Sizes of the dimensions.
Args |
input
|
A Tensor . Input tensor, non-Reference type.
|
device_name
|
An optional string . Defaults to "" .
|
tensor_name
|
An optional string . Defaults to "" .
Name of the input tensor.
|
debug_urls
|
An optional list of strings . Defaults to [] .
List of URLs to debug targets, e.g.,
file:///foo/tfdbg_dump, grpc:://localhost:11011.
|
lower_bound
|
An optional float . Defaults to float('-inf') .
(float) The lower bound <= which values will be included in the
generalized -inf count. Default: -inf.
|
upper_bound
|
An optional float . Defaults to float('inf') .
(float) The upper bound >= which values will be included in the
generalized +inf count. Default: +inf.
|
mute_if_healthy
|
An optional bool . Defaults to False .
(bool) Do not send data to the debug URLs unless at least one
of elements [2], [3] and 7 is non-zero.
|
gated_grpc
|
An optional bool . Defaults to False .
Whether this op will be gated. If any of the debug_urls of this
debug node is of the grpc:// scheme, when the value of this attribute is set
to True, the data will not actually be sent via the grpc stream unless this
debug op has been enabled at the debug_url. If all of the debug_urls of this
debug node are of the grpc:// scheme and the debug op is enabled at none of
them, the output will be an empty Tensor.
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor of type float64 .
|
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. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.raw_ops.DebugNumericSummary\n\n\u003cbr /\u003e\n\nDebug Numeric Summary Op.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.DebugNumericSummary`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/DebugNumericSummary)\n\n\u003cbr /\u003e\n\n tf.raw_ops.DebugNumericSummary(\n input,\n device_name='',\n tensor_name='',\n debug_urls=[],\n lower_bound=float('-inf'),\n upper_bound=float('inf'),\n mute_if_healthy=False,\n gated_grpc=False,\n name=None\n )\n\nProvide a basic summary of numeric value types, range and distribution.\n\noutput: A double tensor of shape \\[14 + nDimensions\\], where nDimensions is the\nnumber of dimensions of the tensor's shape. The elements of output are:\n\\[0\\]: is initialized (1.0) or not (0.0).\n\\[1\\]: total number of elements\n\\[2\\]: NaN element count\n\\[3\\]: generalized -inf count: elements \\\u003c= lower_bound. lower_bound is -inf by\ndefault.\n\\[4\\]: negative element count (excluding -inf), if lower_bound is the default\n-inf. Otherwise, this is the count of elements \\\u003e lower_bound and \\\u003c 0.\n\\[5\\]: zero element count\n\\[6\\]: positive element count (excluding +inf), if upper_bound is the default\n+inf. Otherwise, this is the count of elements \\\u003c upper_bound and \\\u003e 0.\n\\[7\\]: generalized +inf count, elements \\\u003e= upper_bound. upper_bound is +inf by\ndefault.\nOutput elements \\[1:8\\] are all zero, if the tensor is uninitialized.\n\\[8\\]: minimum of all non-inf and non-NaN elements.\nIf uninitialized or no such element exists: +inf.\n\\[9\\]: maximum of all non-inf and non-NaN elements.\nIf uninitialized or no such element exists: -inf.\n\\[10\\]: mean of all non-inf and non-NaN elements.\nIf uninitialized or no such element exists: NaN.\n\\[11\\]: variance of all non-inf and non-NaN elements.\nIf uninitialized or no such element exists: NaN.\n\\[12\\]: Data type of the tensor encoded as an enum integer. See the DataType\nproto for more details.\n\\[13\\]: Number of dimensions of the tensor (ndims).\n\\[14+\\]: Sizes of the dimensions.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `input` | A `Tensor`. Input tensor, non-Reference type. |\n| `device_name` | An optional `string`. Defaults to `\"\"`. |\n| `tensor_name` | An optional `string`. Defaults to `\"\"`. Name of the input tensor. |\n| `debug_urls` | An optional list of `strings`. Defaults to `[]`. List of URLs to debug targets, e.g., file:///foo/tfdbg_dump, grpc:://localhost:11011. |\n| `lower_bound` | An optional `float`. Defaults to `float('-inf')`. (float) The lower bound \\\u003c= which values will be included in the generalized -inf count. Default: -inf. |\n| `upper_bound` | An optional `float`. Defaults to `float('inf')`. (float) The upper bound \\\u003e= which values will be included in the generalized +inf count. Default: +inf. |\n| `mute_if_healthy` | An optional `bool`. Defaults to `False`. (bool) Do not send data to the debug URLs unless at least one of elements \\[2\\], \\[3\\] and [7](/versions/r2.13/api_docs/python/tf/raw_ops/i.e.,%20the%20nan%20count%20and%20the%20generalized%20-inf%20and%0A%20%20inf%20counts) is non-zero. |\n| `gated_grpc` | An optional `bool`. Defaults to `False`. Whether this op will be gated. If any of the debug_urls of this debug node is of the grpc:// scheme, when the value of this attribute is set to True, the data will not actually be sent via the grpc stream unless this debug op has been enabled at the debug_url. If all of the debug_urls of this debug node are of the grpc:// scheme and the debug op is enabled at none of them, the output will be an empty Tensor. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` of type `float64`. ||\n\n\u003cbr /\u003e"]]