Package tensorflow
Class DevicePropertiesProtos.DeviceProperties.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
- tensorflow.DevicePropertiesProtos.DeviceProperties.Builder
-
- All Implemented Interfaces:
Cloneable
,org.nd4j.shade.protobuf.Message.Builder
,org.nd4j.shade.protobuf.MessageLite.Builder
,org.nd4j.shade.protobuf.MessageLiteOrBuilder
,org.nd4j.shade.protobuf.MessageOrBuilder
,DevicePropertiesProtos.DevicePropertiesOrBuilder
- Enclosing class:
- DevicePropertiesProtos.DeviceProperties
public static final class DevicePropertiesProtos.DeviceProperties.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder> implements DevicePropertiesProtos.DevicePropertiesOrBuilder
Protobuf typetensorflow.DeviceProperties
-
-
Method Summary
-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected org.nd4j.shade.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
internalGetMutableMapField
protected org.nd4j.shade.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
clear
public DevicePropertiesProtos.DeviceProperties.Builder clear()
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clear
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
getDefaultInstanceForType
public DevicePropertiesProtos.DeviceProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public DevicePropertiesProtos.DeviceProperties build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public DevicePropertiesProtos.DeviceProperties buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public DevicePropertiesProtos.DeviceProperties.Builder clone()
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clone
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
setField
public DevicePropertiesProtos.DeviceProperties.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
clearField
public DevicePropertiesProtos.DeviceProperties.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
clearOneof
public DevicePropertiesProtos.DeviceProperties.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearOneof
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
setRepeatedField
public DevicePropertiesProtos.DeviceProperties.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
addRepeatedField
public DevicePropertiesProtos.DeviceProperties.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
mergeFrom
public DevicePropertiesProtos.DeviceProperties.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
mergeFrom
public DevicePropertiesProtos.DeviceProperties.Builder mergeFrom(DevicePropertiesProtos.DeviceProperties other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
mergeFrom
public DevicePropertiesProtos.DeviceProperties.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
- Throws:
IOException
-
getType
public String getType()
Device type (CPU, GPU, ...)
string type = 1;
- Specified by:
getType
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The type.
-
getTypeBytes
public org.nd4j.shade.protobuf.ByteString getTypeBytes()
Device type (CPU, GPU, ...)
string type = 1;
- Specified by:
getTypeBytes
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The bytes for type.
-
setType
public DevicePropertiesProtos.DeviceProperties.Builder setType(String value)
Device type (CPU, GPU, ...)
string type = 1;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public DevicePropertiesProtos.DeviceProperties.Builder clearType()
Device type (CPU, GPU, ...)
string type = 1;
- Returns:
- This builder for chaining.
-
setTypeBytes
public DevicePropertiesProtos.DeviceProperties.Builder setTypeBytes(org.nd4j.shade.protobuf.ByteString value)
Device type (CPU, GPU, ...)
string type = 1;
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
getVendor
public String getVendor()
Vendor (Intel, nvidia, ...)
string vendor = 2;
- Specified by:
getVendor
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The vendor.
-
getVendorBytes
public org.nd4j.shade.protobuf.ByteString getVendorBytes()
Vendor (Intel, nvidia, ...)
string vendor = 2;
- Specified by:
getVendorBytes
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The bytes for vendor.
-
setVendor
public DevicePropertiesProtos.DeviceProperties.Builder setVendor(String value)
Vendor (Intel, nvidia, ...)
string vendor = 2;
- Parameters:
value
- The vendor to set.- Returns:
- This builder for chaining.
-
clearVendor
public DevicePropertiesProtos.DeviceProperties.Builder clearVendor()
Vendor (Intel, nvidia, ...)
string vendor = 2;
- Returns:
- This builder for chaining.
-
setVendorBytes
public DevicePropertiesProtos.DeviceProperties.Builder setVendorBytes(org.nd4j.shade.protobuf.ByteString value)
Vendor (Intel, nvidia, ...)
string vendor = 2;
- Parameters:
value
- The bytes for vendor to set.- Returns:
- This builder for chaining.
-
getModel
public String getModel()
Model (Haswell, K40, ...)
string model = 3;
- Specified by:
getModel
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The model.
-
getModelBytes
public org.nd4j.shade.protobuf.ByteString getModelBytes()
Model (Haswell, K40, ...)
string model = 3;
- Specified by:
getModelBytes
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The bytes for model.
-
setModel
public DevicePropertiesProtos.DeviceProperties.Builder setModel(String value)
Model (Haswell, K40, ...)
string model = 3;
- Parameters:
value
- The model to set.- Returns:
- This builder for chaining.
-
clearModel
public DevicePropertiesProtos.DeviceProperties.Builder clearModel()
Model (Haswell, K40, ...)
string model = 3;
- Returns:
- This builder for chaining.
-
setModelBytes
public DevicePropertiesProtos.DeviceProperties.Builder setModelBytes(org.nd4j.shade.protobuf.ByteString value)
Model (Haswell, K40, ...)
string model = 3;
- Parameters:
value
- The bytes for model to set.- Returns:
- This builder for chaining.
-
getFrequency
public long getFrequency()
Core Frequency in Mhz
int64 frequency = 4;
- Specified by:
getFrequency
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The frequency.
-
setFrequency
public DevicePropertiesProtos.DeviceProperties.Builder setFrequency(long value)
Core Frequency in Mhz
int64 frequency = 4;
- Parameters:
value
- The frequency to set.- Returns:
- This builder for chaining.
-
clearFrequency
public DevicePropertiesProtos.DeviceProperties.Builder clearFrequency()
Core Frequency in Mhz
int64 frequency = 4;
- Returns:
- This builder for chaining.
-
getNumCores
public long getNumCores()
Number of cores
int64 num_cores = 5;
- Specified by:
getNumCores
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The numCores.
-
setNumCores
public DevicePropertiesProtos.DeviceProperties.Builder setNumCores(long value)
Number of cores
int64 num_cores = 5;
- Parameters:
value
- The numCores to set.- Returns:
- This builder for chaining.
-
clearNumCores
public DevicePropertiesProtos.DeviceProperties.Builder clearNumCores()
Number of cores
int64 num_cores = 5;
- Returns:
- This builder for chaining.
-
getEnvironmentCount
public int getEnvironmentCount()
Description copied from interface:DevicePropertiesProtos.DevicePropertiesOrBuilder
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
- Specified by:
getEnvironmentCount
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
containsEnvironment
public boolean containsEnvironment(String key)
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
- Specified by:
containsEnvironment
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
getEnvironment
@Deprecated public Map<String,String> getEnvironment()
Deprecated.UsegetEnvironmentMap()
instead.- Specified by:
getEnvironment
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
getEnvironmentMap
public Map<String,String> getEnvironmentMap()
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
- Specified by:
getEnvironmentMap
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
getEnvironmentOrDefault
public String getEnvironmentOrDefault(String key, String defaultValue)
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
- Specified by:
getEnvironmentOrDefault
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
getEnvironmentOrThrow
public String getEnvironmentOrThrow(String key)
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
- Specified by:
getEnvironmentOrThrow
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
clearEnvironment
public DevicePropertiesProtos.DeviceProperties.Builder clearEnvironment()
-
removeEnvironment
public DevicePropertiesProtos.DeviceProperties.Builder removeEnvironment(String key)
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
-
getMutableEnvironment
@Deprecated public Map<String,String> getMutableEnvironment()
Deprecated.Use alternate mutation accessors instead.
-
putEnvironment
public DevicePropertiesProtos.DeviceProperties.Builder putEnvironment(String key, String value)
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
-
putAllEnvironment
public DevicePropertiesProtos.DeviceProperties.Builder putAllEnvironment(Map<String,String> values)
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
-
getNumRegisters
public long getNumRegisters()
Number of registers per core.
int64 num_registers = 7;
- Specified by:
getNumRegisters
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The numRegisters.
-
setNumRegisters
public DevicePropertiesProtos.DeviceProperties.Builder setNumRegisters(long value)
Number of registers per core.
int64 num_registers = 7;
- Parameters:
value
- The numRegisters to set.- Returns:
- This builder for chaining.
-
clearNumRegisters
public DevicePropertiesProtos.DeviceProperties.Builder clearNumRegisters()
Number of registers per core.
int64 num_registers = 7;
- Returns:
- This builder for chaining.
-
getL1CacheSize
public long getL1CacheSize()
L1 cache size in bytes
int64 l1_cache_size = 8;
- Specified by:
getL1CacheSize
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The l1CacheSize.
-
setL1CacheSize
public DevicePropertiesProtos.DeviceProperties.Builder setL1CacheSize(long value)
L1 cache size in bytes
int64 l1_cache_size = 8;
- Parameters:
value
- The l1CacheSize to set.- Returns:
- This builder for chaining.
-
clearL1CacheSize
public DevicePropertiesProtos.DeviceProperties.Builder clearL1CacheSize()
L1 cache size in bytes
int64 l1_cache_size = 8;
- Returns:
- This builder for chaining.
-
getL2CacheSize
public long getL2CacheSize()
L2 cache size in bytes
int64 l2_cache_size = 9;
- Specified by:
getL2CacheSize
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The l2CacheSize.
-
setL2CacheSize
public DevicePropertiesProtos.DeviceProperties.Builder setL2CacheSize(long value)
L2 cache size in bytes
int64 l2_cache_size = 9;
- Parameters:
value
- The l2CacheSize to set.- Returns:
- This builder for chaining.
-
clearL2CacheSize
public DevicePropertiesProtos.DeviceProperties.Builder clearL2CacheSize()
L2 cache size in bytes
int64 l2_cache_size = 9;
- Returns:
- This builder for chaining.
-
getL3CacheSize
public long getL3CacheSize()
L3 cache size in bytes
int64 l3_cache_size = 10;
- Specified by:
getL3CacheSize
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The l3CacheSize.
-
setL3CacheSize
public DevicePropertiesProtos.DeviceProperties.Builder setL3CacheSize(long value)
L3 cache size in bytes
int64 l3_cache_size = 10;
- Parameters:
value
- The l3CacheSize to set.- Returns:
- This builder for chaining.
-
clearL3CacheSize
public DevicePropertiesProtos.DeviceProperties.Builder clearL3CacheSize()
L3 cache size in bytes
int64 l3_cache_size = 10;
- Returns:
- This builder for chaining.
-
getSharedMemorySizePerMultiprocessor
public long getSharedMemorySizePerMultiprocessor()
Shared memory size per multiprocessor in bytes. This field is applicable to GPUs only.
int64 shared_memory_size_per_multiprocessor = 11;
- Specified by:
getSharedMemorySizePerMultiprocessor
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The sharedMemorySizePerMultiprocessor.
-
setSharedMemorySizePerMultiprocessor
public DevicePropertiesProtos.DeviceProperties.Builder setSharedMemorySizePerMultiprocessor(long value)
Shared memory size per multiprocessor in bytes. This field is applicable to GPUs only.
int64 shared_memory_size_per_multiprocessor = 11;
- Parameters:
value
- The sharedMemorySizePerMultiprocessor to set.- Returns:
- This builder for chaining.
-
clearSharedMemorySizePerMultiprocessor
public DevicePropertiesProtos.DeviceProperties.Builder clearSharedMemorySizePerMultiprocessor()
Shared memory size per multiprocessor in bytes. This field is applicable to GPUs only.
int64 shared_memory_size_per_multiprocessor = 11;
- Returns:
- This builder for chaining.
-
getMemorySize
public long getMemorySize()
Memory size in bytes
int64 memory_size = 12;
- Specified by:
getMemorySize
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The memorySize.
-
setMemorySize
public DevicePropertiesProtos.DeviceProperties.Builder setMemorySize(long value)
Memory size in bytes
int64 memory_size = 12;
- Parameters:
value
- The memorySize to set.- Returns:
- This builder for chaining.
-
clearMemorySize
public DevicePropertiesProtos.DeviceProperties.Builder clearMemorySize()
Memory size in bytes
int64 memory_size = 12;
- Returns:
- This builder for chaining.
-
getBandwidth
public long getBandwidth()
Memory bandwidth in KB/s
int64 bandwidth = 13;
- Specified by:
getBandwidth
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The bandwidth.
-
setBandwidth
public DevicePropertiesProtos.DeviceProperties.Builder setBandwidth(long value)
Memory bandwidth in KB/s
int64 bandwidth = 13;
- Parameters:
value
- The bandwidth to set.- Returns:
- This builder for chaining.
-
clearBandwidth
public DevicePropertiesProtos.DeviceProperties.Builder clearBandwidth()
Memory bandwidth in KB/s
int64 bandwidth = 13;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final DevicePropertiesProtos.DeviceProperties.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
mergeUnknownFields
public final DevicePropertiesProtos.DeviceProperties.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
-