public static final class
DeviceAttributes.Builder
Protobuf type tensorflow.DeviceAttributes
Public Methods
DeviceAttributes.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
DeviceAttributes |
build()
|
DeviceAttributes | |
DeviceAttributes.Builder |
clear()
|
DeviceAttributes.Builder |
clearDeviceType()
String representation of device_type. |
DeviceAttributes.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
DeviceAttributes.Builder |
clearIncarnation()
A device is assigned a global unique number each time it is initialized. |
DeviceAttributes.Builder |
clearLocality()
Platform-specific data about device that may be useful for supporting efficient data transfers. |
DeviceAttributes.Builder |
clearMemoryLimit()
Memory capacity of device in bytes. |
DeviceAttributes.Builder |
clearName()
Fully specified name of the device within a cluster. |
DeviceAttributes.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
DeviceAttributes.Builder |
clearPhysicalDeviceDesc()
String representation of the physical device that this device maps to. |
DeviceAttributes.Builder |
clone()
|
DeviceAttributes | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
String |
getDeviceType()
String representation of device_type. |
com.google.protobuf.ByteString |
getDeviceTypeBytes()
String representation of device_type. |
long |
getIncarnation()
A device is assigned a global unique number each time it is initialized. |
DeviceLocality |
getLocality()
Platform-specific data about device that may be useful for supporting efficient data transfers. |
DeviceLocality.Builder |
getLocalityBuilder()
Platform-specific data about device that may be useful for supporting efficient data transfers. |
DeviceLocalityOrBuilder |
getLocalityOrBuilder()
Platform-specific data about device that may be useful for supporting efficient data transfers. |
long |
getMemoryLimit()
Memory capacity of device in bytes. |
String |
getName()
Fully specified name of the device within a cluster. |
com.google.protobuf.ByteString |
getNameBytes()
Fully specified name of the device within a cluster. |
String |
getPhysicalDeviceDesc()
String representation of the physical device that this device maps to. |
com.google.protobuf.ByteString |
getPhysicalDeviceDescBytes()
String representation of the physical device that this device maps to. |
boolean |
hasLocality()
Platform-specific data about device that may be useful for supporting efficient data transfers. |
final boolean | |
DeviceAttributes.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
DeviceAttributes.Builder |
mergeFrom(com.google.protobuf.Message other)
|
DeviceAttributes.Builder |
mergeLocality(DeviceLocality value)
Platform-specific data about device that may be useful for supporting efficient data transfers. |
final DeviceAttributes.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
DeviceAttributes.Builder |
setDeviceType(String value)
String representation of device_type. |
DeviceAttributes.Builder |
setDeviceTypeBytes(com.google.protobuf.ByteString value)
String representation of device_type. |
DeviceAttributes.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
DeviceAttributes.Builder |
setIncarnation(long value)
A device is assigned a global unique number each time it is initialized. |
DeviceAttributes.Builder |
setLocality(DeviceLocality value)
Platform-specific data about device that may be useful for supporting efficient data transfers. |
DeviceAttributes.Builder |
setLocality(DeviceLocality.Builder builderForValue)
Platform-specific data about device that may be useful for supporting efficient data transfers. |
DeviceAttributes.Builder |
setMemoryLimit(long value)
Memory capacity of device in bytes. |
DeviceAttributes.Builder |
setName(String value)
Fully specified name of the device within a cluster. |
DeviceAttributes.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Fully specified name of the device within a cluster. |
DeviceAttributes.Builder |
setPhysicalDeviceDesc(String value)
String representation of the physical device that this device maps to. |
DeviceAttributes.Builder |
setPhysicalDeviceDescBytes(com.google.protobuf.ByteString value)
String representation of the physical device that this device maps to. |
DeviceAttributes.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
final DeviceAttributes.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public DeviceAttributes.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public DeviceAttributes.Builder clearDeviceType ()
String representation of device_type.
string device_type = 2;
public DeviceAttributes.Builder clearIncarnation ()
A device is assigned a global unique number each time it is initialized. "incarnation" should never be 0.
fixed64 incarnation = 6;
public DeviceAttributes.Builder clearLocality ()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
public DeviceAttributes.Builder clearMemoryLimit ()
Memory capacity of device in bytes.
int64 memory_limit = 4;
public DeviceAttributes.Builder clearName ()
Fully specified name of the device within a cluster.
string name = 1;
public DeviceAttributes.Builder clearPhysicalDeviceDesc ()
String representation of the physical device that this device maps to.
string physical_device_desc = 7;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public String getDeviceType ()
String representation of device_type.
string device_type = 2;
public com.google.protobuf.ByteString getDeviceTypeBytes ()
String representation of device_type.
string device_type = 2;
public long getIncarnation ()
A device is assigned a global unique number each time it is initialized. "incarnation" should never be 0.
fixed64 incarnation = 6;
public DeviceLocality getLocality ()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
public DeviceLocality.Builder getLocalityBuilder ()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
public DeviceLocalityOrBuilder getLocalityOrBuilder ()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
public long getMemoryLimit ()
Memory capacity of device in bytes.
int64 memory_limit = 4;
public String getName ()
Fully specified name of the device within a cluster.
string name = 1;
public com.google.protobuf.ByteString getNameBytes ()
Fully specified name of the device within a cluster.
string name = 1;
public String getPhysicalDeviceDesc ()
String representation of the physical device that this device maps to.
string physical_device_desc = 7;
public com.google.protobuf.ByteString getPhysicalDeviceDescBytes ()
String representation of the physical device that this device maps to.
string physical_device_desc = 7;
public boolean hasLocality ()
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
public final boolean isInitialized ()
public DeviceAttributes.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public DeviceAttributes.Builder mergeLocality (DeviceLocality value)
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
public final DeviceAttributes.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public DeviceAttributes.Builder setDeviceType (String value)
String representation of device_type.
string device_type = 2;
public DeviceAttributes.Builder setDeviceTypeBytes (com.google.protobuf.ByteString value)
String representation of device_type.
string device_type = 2;
public DeviceAttributes.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public DeviceAttributes.Builder setIncarnation (long value)
A device is assigned a global unique number each time it is initialized. "incarnation" should never be 0.
fixed64 incarnation = 6;
public DeviceAttributes.Builder setLocality (DeviceLocality value)
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
public DeviceAttributes.Builder setLocality (DeviceLocality.Builder builderForValue)
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;
public DeviceAttributes.Builder setMemoryLimit (long value)
Memory capacity of device in bytes.
int64 memory_limit = 4;
public DeviceAttributes.Builder setName (String value)
Fully specified name of the device within a cluster.
string name = 1;
public DeviceAttributes.Builder setNameBytes (com.google.protobuf.ByteString value)
Fully specified name of the device within a cluster.
string name = 1;
public DeviceAttributes.Builder setPhysicalDeviceDesc (String value)
String representation of the physical device that this device maps to.
string physical_device_desc = 7;
public DeviceAttributes.Builder setPhysicalDeviceDescBytes (com.google.protobuf.ByteString value)
String representation of the physical device that this device maps to.
string physical_device_desc = 7;