Class CPUInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.CPUInfo
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, CPUInfoOrBuilder
Protobuf type
tensorflow.CPUInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typetensorflow.CPUInfoNested classes/interfaces inherited from class GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsCacheSize(String key) Cache sizes (in bytes), e.g.booleanDeprecated.intCache sizes (in bytes), e.g.Cache sizes (in bytes), e.g.longgetCacheSizeOrDefault(String key, long defaultValue) Cache sizes (in bytes), e.g.longCache sizes (in bytes), e.g.What kind of cpu scaling is enabled on the host.What kind of cpu scaling is enabled on the host.Additional cpu information.Additional cpu information.static CPUInfostatic final Descriptors.DescriptordoubleHow fast are these cpus?longint64 num_cores = 1;longint64 num_cores_allowed = 2;intfinal UnknownFieldSetinthashCode()protected GeneratedMessageV3.FieldAccessorTableprotected MapFieldinternalGetMapField(int number) final booleanstatic CPUInfo.Builderstatic CPUInfo.BuildernewBuilder(CPUInfo prototype) protected CPUInfo.Builderprotected Objectstatic CPUInfoparseDelimitedFrom(InputStream input) static CPUInfoparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static CPUInfoparseFrom(byte[] data) static CPUInfoparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static CPUInfoparseFrom(ByteString data) static CPUInfoparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static CPUInfoparseFrom(CodedInputStream input) static CPUInfoparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static CPUInfoparseFrom(InputStream input) static CPUInfoparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static CPUInfoparseFrom(ByteBuffer data) static CPUInfoparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) parser()voidwriteTo(CodedOutputStream output) Methods inherited from class GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
NUM_CORES_FIELD_NUMBER
public static final int NUM_CORES_FIELD_NUMBER- See Also:
-
NUM_CORES_ALLOWED_FIELD_NUMBER
public static final int NUM_CORES_ALLOWED_FIELD_NUMBER- See Also:
-
MHZ_PER_CPU_FIELD_NUMBER
public static final int MHZ_PER_CPU_FIELD_NUMBER- See Also:
-
CPU_INFO_FIELD_NUMBER
public static final int CPU_INFO_FIELD_NUMBER- See Also:
-
CPU_GOVERNOR_FIELD_NUMBER
public static final int CPU_GOVERNOR_FIELD_NUMBER- See Also:
-
CACHE_SIZE_FIELD_NUMBER
public static final int CACHE_SIZE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetMapField
- Overrides:
internalGetMapFieldin classGeneratedMessageV3
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getNumCores
public long getNumCores()int64 num_cores = 1;- Specified by:
getNumCoresin interfaceCPUInfoOrBuilder- Returns:
- The numCores.
-
getNumCoresAllowed
public long getNumCoresAllowed()int64 num_cores_allowed = 2;- Specified by:
getNumCoresAllowedin interfaceCPUInfoOrBuilder- Returns:
- The numCoresAllowed.
-
getMhzPerCpu
public double getMhzPerCpu()How fast are these cpus?
double mhz_per_cpu = 3;- Specified by:
getMhzPerCpuin interfaceCPUInfoOrBuilder- Returns:
- The mhzPerCpu.
-
getCpuInfo
Additional cpu information. For example, Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;- Specified by:
getCpuInfoin interfaceCPUInfoOrBuilder- Returns:
- The cpuInfo.
-
getCpuInfoBytes
Additional cpu information. For example, Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;- Specified by:
getCpuInfoBytesin interfaceCPUInfoOrBuilder- Returns:
- The bytes for cpuInfo.
-
getCpuGovernor
What kind of cpu scaling is enabled on the host. Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;- Specified by:
getCpuGovernorin interfaceCPUInfoOrBuilder- Returns:
- The cpuGovernor.
-
getCpuGovernorBytes
What kind of cpu scaling is enabled on the host. Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;- Specified by:
getCpuGovernorBytesin interfaceCPUInfoOrBuilder- Returns:
- The bytes for cpuGovernor.
-
getCacheSizeCount
public int getCacheSizeCount()Description copied from interface:CPUInfoOrBuilderCache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;- Specified by:
getCacheSizeCountin interfaceCPUInfoOrBuilder
-
containsCacheSize
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;- Specified by:
containsCacheSizein interfaceCPUInfoOrBuilder
-
getCacheSize
-
getCacheSizeMap
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;- Specified by:
getCacheSizeMapin interfaceCPUInfoOrBuilder
-
getCacheSizeOrDefault
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;- Specified by:
getCacheSizeOrDefaultin interfaceCPUInfoOrBuilder
-
getCacheSizeOrThrow
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;- Specified by:
getCacheSizeOrThrowin interfaceCPUInfoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static CPUInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static CPUInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static CPUInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CPUInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CPUInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CPUInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-