aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/xla_data.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/xla_data.proto')
-rw-r--r--tensorflow/compiler/xla/xla_data.proto16
1 files changed, 16 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/xla_data.proto b/tensorflow/compiler/xla/xla_data.proto
index c7472173a7..0b300dc7b2 100644
--- a/tensorflow/compiler/xla/xla_data.proto
+++ b/tensorflow/compiler/xla/xla_data.proto
@@ -308,6 +308,22 @@ message DeviceHandle {
// Send instructions will be blocked until the data is transferred.
message ChannelHandle {
int64 handle = 1;
+ enum ChannelType {
+ // Invalid primitive type to serve as default.
+ CHANNEL_TYPE_INVALID = 0;
+
+ // A channel for sending data between devices.
+ DEVICE_TO_DEVICE = 1;
+
+ // A channel for sending data from the device to the host. Can only be used
+ // with a Send operation.
+ DEVICE_TO_HOST = 2;
+
+ // A channel for sending data from the host to the device. Can only be used
+ // with a Recv operation.
+ HOST_TO_DEVICE = 3;
+ }
+ ChannelType type = 2;
}
// DeviceAssignmentProto is a serialized form of DeviceAssignment class, which