@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.SparseSoftmaxCrossEntropyWithLogits extends Pointer
SoftmaxCrossEntropyWithLogits, this operation does not accept
a matrix of label probabilities, but rather a single label per row
of features. This label is considered to have probability 1.0 for the
given row.
Inputs are the logits, not probabilities.
Arguments:
* scope: A Scope object
* features: batch_size x num_classes matrix
* labels: batch_size vector with values in [0, num_classes).
This is the label for the given minibatch entry.
Returns:
* Output loss: Per example loss (batch_size vector).
* Output backprop: backpropagated gradients (batch_size x num_classes matrix).Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
SparseSoftmaxCrossEntropyWithLogits(Pointer p)
Pointer cast constructor.
|
SparseSoftmaxCrossEntropyWithLogits(tensorflow.Scope scope,
tensorflow.Input features,
tensorflow.Input labels) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Output |
backprop() |
tensorflow.SparseSoftmaxCrossEntropyWithLogits |
backprop(tensorflow.Output backprop) |
tensorflow.Output |
loss() |
tensorflow.SparseSoftmaxCrossEntropyWithLogits |
loss(tensorflow.Output loss) |
tensorflow.Operation |
operation() |
tensorflow.SparseSoftmaxCrossEntropyWithLogits |
operation(tensorflow.Operation operation) |
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 SparseSoftmaxCrossEntropyWithLogits(Pointer p)
Pointer.Pointer(Pointer).public SparseSoftmaxCrossEntropyWithLogits(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input features, @ByVal tensorflow.Input labels)
@ByRef public tensorflow.Operation operation()
public tensorflow.SparseSoftmaxCrossEntropyWithLogits operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output loss()
public tensorflow.SparseSoftmaxCrossEntropyWithLogits loss(tensorflow.Output loss)
@ByRef public tensorflow.Output backprop()
public tensorflow.SparseSoftmaxCrossEntropyWithLogits backprop(tensorflow.Output backprop)
Copyright © 2019. All rights reserved.