@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.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| Constructor and Description |
|---|
Switch(Pointer p)
Pointer cast constructor.
|
Switch(tensorflow.Scope scope,
tensorflow.Input data,
tensorflow.Input pred) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Operation |
operation() |
tensorflow.Switch |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output_false() |
tensorflow.Switch |
output_false(tensorflow.Output output_false) |
tensorflow.Output |
output_true() |
tensorflow.Switch |
output_true(tensorflow.Output output_true) |
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 Switch(Pointer p)
Pointer.Pointer(Pointer).public Switch(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input data, @ByVal tensorflow.Input pred)
@ByRef public tensorflow.Operation operation()
public tensorflow.Switch operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output_false()
public tensorflow.Switch output_false(tensorflow.Output output_false)
@ByRef public tensorflow.Output output_true()
public tensorflow.Switch output_true(tensorflow.Output output_true)
Copyright © 2019. All rights reserved.