Given the tensor values, this operation returns a rank 1 histogram counting the number of entries in values that fell into every bin. The bins are equal width and determined by the arguments value_range and nbins.
Args
values
Numeric Tensor.
value_range
Shape [2] Tensor of same dtype as values. values <= value_range[0] will be mapped to hist[0], values >= value_range[1] will be mapped to hist[-1].
nbins
Scalar int32 Tensor. Number of histogram bins.
dtype
dtype for returned histogram.
name
A name for this operation (defaults to 'histogram_fixed_width').