@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Switch extends Pointer
data
to the output port determined by pred
.
If pred
is true, the data
input is forwarded to output_true
. Otherwise,
the data goes to output_false
.
See also RefSwitch
and Merge
.
Arguments:
* scope: A Scope object
* data: The tensor to be forwarded to the appropriate output.
* pred: A scalar that specifies which output port will receive data.
Returns:
* Output
output_false: If pred
is false, data will be forwarded to this output.
* Output
output_true: If pred
is true, data will be forwarded to this output.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Switch(Pointer p)
Pointer cast constructor.
|
Switch(Scope scope,
Input data,
Input pred) |
Modifier and Type | Method and Description |
---|---|
Operation |
operation() |
Switch |
operation(Operation setter) |
Output |
output_false() |
Switch |
output_false(Output setter) |
Output |
output_true() |
Switch |
output_true(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Switch(Pointer p)
Pointer(Pointer)
.Copyright © 2022. All rights reserved.