@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.HistogramFixedWidth extends Pointer
values, this operation returns a rank 1 histogram counting
the number of entries in values that fall into every bin. The bins are
equal width and determined by the arguments value_range and nbins.
python
# Bins will be: (-inf, 1), [1, 2), [2, 3), [3, 4), [4, inf)
nbins = 5
value_range = [0.0, 5.0]
new_values = [-1.0, 0.0, 1.5, 2.0, 5.0, 15]
with tf.get_default_session() as sess:
hist = tf.histogram_fixed_width(new_values, value_range, nbins=5)
variables.global_variables_initializer().run()
sess.run(hist) => [2, 1, 1, 0, 2]
Arguments:
* scope: A Scope object
* 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.
Returns:
* Output: A 1-D Tensor holding histogram of values.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.HistogramFixedWidth.Attrs
Optional attribute setters for HistogramFixedWidth
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
HistogramFixedWidth(Pointer p)
Pointer cast constructor.
|
HistogramFixedWidth(tensorflow.Scope scope,
tensorflow.Input values,
tensorflow.Input value_range,
tensorflow.Input nbins) |
HistogramFixedWidth(tensorflow.Scope scope,
tensorflow.Input values,
tensorflow.Input value_range,
tensorflow.Input nbins,
tensorflow.HistogramFixedWidth.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
static tensorflow.HistogramFixedWidth.Attrs |
Dtype(int x) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.HistogramFixedWidth |
operation(tensorflow.Operation operation) |
tensorflow.Output |
out() |
tensorflow.HistogramFixedWidth |
out(tensorflow.Output out) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic HistogramFixedWidth(Pointer p)
Pointer.Pointer(Pointer).public HistogramFixedWidth(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input values, @ByVal tensorflow.Input value_range, @ByVal tensorflow.Input nbins)
public HistogramFixedWidth(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input values, @ByVal tensorflow.Input value_range, @ByVal tensorflow.Input nbins, @Const @ByRef tensorflow.HistogramFixedWidth.Attrs attrs)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByVal public static tensorflow.HistogramFixedWidth.Attrs Dtype(@Cast(value="tensorflow::DataType") int x)
@ByRef public tensorflow.Operation operation()
public tensorflow.HistogramFixedWidth operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output out()
public tensorflow.HistogramFixedWidth out(tensorflow.Output out)
Copyright © 2019. All rights reserved.