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:
internalGetMapFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
internalGetMutableMapField
protected org.nd4j.shade.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
clear
public DevicePropertiesProtos.DeviceProperties.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
getDefaultInstanceForType
public DevicePropertiesProtos.DeviceProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public DevicePropertiesProtos.DeviceProperties build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public DevicePropertiesProtos.DeviceProperties buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public DevicePropertiesProtos.DeviceProperties.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein 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:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
clearField
public DevicePropertiesProtos.DeviceProperties.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
clearOneof
public DevicePropertiesProtos.DeviceProperties.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin 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:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
mergeFrom
public DevicePropertiesProtos.DeviceProperties.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin 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:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<DevicePropertiesProtos.DeviceProperties.Builder>- Throws:
IOException
-
getType
public String getType()
Device type (CPU, GPU, ...)
string type = 1;- Specified by:
getTypein interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder- Returns:
- The type.
-
getTypeBytes
public org.nd4j.shade.protobuf.ByteString getTypeBytes()
Device type (CPU, GPU, ...)
string type = 1;- Specified by:
getTypeBytesin 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:
getVendorin interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder- Returns:
- The vendor.
-
getVendorBytes
public org.nd4j.shade.protobuf.ByteString getVendorBytes()
Vendor (Intel, nvidia, ...)
string vendor = 2;- Specified by:
getVendorBytesin 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:
getModelin interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder- Returns:
- The model.
-
getModelBytes
public org.nd4j.shade.protobuf.ByteString getModelBytes()
Model (Haswell, K40, ...)
string model = 3;- Specified by:
getModelBytesin 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:
getFrequencyin 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:
getNumCoresin 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.DevicePropertiesOrBuilderVersion of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;- Specified by:
getEnvironmentCountin 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:
containsEnvironmentin interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
getEnvironment
@Deprecated public Map<String,String> getEnvironment()
Deprecated.UsegetEnvironmentMap()instead.- Specified by:
getEnvironmentin 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:
getEnvironmentMapin 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:
getEnvironmentOrDefaultin 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:
getEnvironmentOrThrowin 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:
getNumRegistersin 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:
getL1CacheSizein 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:
getL2CacheSizein 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:
getL3CacheSizein 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:
getSharedMemorySizePerMultiprocessorin 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:
getMemorySizein 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:
getBandwidthin 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:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
mergeUnknownFields
public final DevicePropertiesProtos.DeviceProperties.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<DevicePropertiesProtos.DeviceProperties.Builder>
-
-