CPUInfoOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
abstract
boolean
|
|
abstract
Map<String, Long>
|
|
abstract
int
|
|
abstract
Map<String, Long>
|
|
abstract
long
|
|
abstract
long
|
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
double
|
getMhzPerCpu()
How fast are these cpus?
double mhz_per_cpu = 3;
|
abstract
long
|
|
abstract
long
|
|
Public Methods
public
abstract
boolean
containsCacheSize
(String key)
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;
public
abstract
Map<String, Long>
getCacheSize
()
public
abstract
int
getCacheSizeCount
()
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;
public
abstract
Map<String, Long>
getCacheSizeMap
()
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;
public
abstract
long
getCacheSizeOrDefault
(String key, long defaultValue)
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;
public
abstract
long
getCacheSizeOrThrow
(String key)
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;
public
abstract
String
getCpuGovernor
()
What kind of cpu scaling is enabled on the host.
Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;
public
abstract
com.google.protobuf.ByteString
getCpuGovernorBytes
()
What kind of cpu scaling is enabled on the host.
Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;
public
abstract
String
getCpuInfo
()
Additional cpu information. For example,
Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;
public
abstract
com.google.protobuf.ByteString
getCpuInfoBytes
()
Additional cpu information. For example,
Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;
public
abstract
double
getMhzPerCpu
()
How fast are these cpus?
double mhz_per_cpu = 3;
public
abstract
long
getNumCores
()
public
abstract
long
getNumCoresAllowed
()
int64 num_cores_allowed = 2;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# CPUInfoOrBuilder\n\npublic interface **CPUInfoOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [CPUInfo](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfo), [CPUInfo.Builder](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfo.Builder) |-----------------------------------------------------------------------------------------|------------------------------------| | [CPUInfo](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfo) | Protobuf type `tensorflow.CPUInfo` | | [CPUInfo.Builder](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfo.Builder) | Protobuf type `tensorflow.CPUInfo` | |||\n\n### Public Methods\n\n|-----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [containsCacheSize](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#containsCacheSize(java.lang.String))(String key) ``` Cache sizes (in bytes), e.g. ``` |\n| abstract Map\\\u003cString, Long\\\u003e | [getCacheSize](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCacheSize())() Use [getCacheSizeMap()](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCacheSizeMap()) instead. |\n| abstract int | [getCacheSizeCount](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCacheSizeCount())() ``` Cache sizes (in bytes), e.g. ``` |\n| abstract Map\\\u003cString, Long\\\u003e | [getCacheSizeMap](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCacheSizeMap())() ``` Cache sizes (in bytes), e.g. ``` |\n| abstract long | [getCacheSizeOrDefault](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCacheSizeOrDefault(java.lang.String, long))(String key, long defaultValue) ``` Cache sizes (in bytes), e.g. ``` |\n| abstract long | [getCacheSizeOrThrow](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCacheSizeOrThrow(java.lang.String))(String key) ``` Cache sizes (in bytes), e.g. ``` |\n| abstract String | [getCpuGovernor](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCpuGovernor())() ``` What kind of cpu scaling is enabled on the host. ``` |\n| abstract com.google.protobuf.ByteString | [getCpuGovernorBytes](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCpuGovernorBytes())() ``` What kind of cpu scaling is enabled on the host. ``` |\n| abstract String | [getCpuInfo](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCpuInfo())() ``` Additional cpu information. ``` |\n| abstract com.google.protobuf.ByteString | [getCpuInfoBytes](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCpuInfoBytes())() ``` Additional cpu information. ``` |\n| abstract double | [getMhzPerCpu](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getMhzPerCpu())() ``` How fast are these cpus? ``` `double mhz_per_cpu = 3;` |\n| abstract long | [getNumCores](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getNumCores())() `int64 num_cores = 1;` |\n| abstract long | [getNumCoresAllowed](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getNumCoresAllowed())() `int64 num_cores_allowed = 2;` |\n\nPublic Methods\n--------------\n\n#### public abstract boolean\n**containsCacheSize**\n(String key)\n\n\u003cbr /\u003e\n\n```\n Cache sizes (in bytes), e.g. \"L2\": 262144 (for 256KB)\n \n```\n`map\u003cstring, int64\u003e cache_size = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract Map\\\u003cString, Long\\\u003e\n**getCacheSize**\n()\n\nUse [getCacheSizeMap()](/jvm/api_docs/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder#getCacheSizeMap()) instead. \n\n#### public abstract int\n**getCacheSizeCount**\n()\n\n\u003cbr /\u003e\n\n```\n Cache sizes (in bytes), e.g. \"L2\": 262144 (for 256KB)\n \n```\n`map\u003cstring, int64\u003e cache_size = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract Map\\\u003cString, Long\\\u003e\n**getCacheSizeMap**\n()\n\n\u003cbr /\u003e\n\n```\n Cache sizes (in bytes), e.g. \"L2\": 262144 (for 256KB)\n \n```\n`map\u003cstring, int64\u003e cache_size = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getCacheSizeOrDefault**\n(String key, long defaultValue)\n\n\u003cbr /\u003e\n\n```\n Cache sizes (in bytes), e.g. \"L2\": 262144 (for 256KB)\n \n```\n`map\u003cstring, int64\u003e cache_size = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getCacheSizeOrThrow**\n(String key)\n\n\u003cbr /\u003e\n\n```\n Cache sizes (in bytes), e.g. \"L2\": 262144 (for 256KB)\n \n```\n`map\u003cstring, int64\u003e cache_size = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getCpuGovernor**\n()\n\n\u003cbr /\u003e\n\n```\n What kind of cpu scaling is enabled on the host.\n Examples include \"performance\", \"ondemand\", \"conservative\", \"mixed\".\n \n```\n`string cpu_governor = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getCpuGovernorBytes**\n()\n\n\u003cbr /\u003e\n\n```\n What kind of cpu scaling is enabled on the host.\n Examples include \"performance\", \"ondemand\", \"conservative\", \"mixed\".\n \n```\n`string cpu_governor = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getCpuInfo**\n()\n\n\u003cbr /\u003e\n\n```\n Additional cpu information. For example,\n Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB\n \n```\n`string cpu_info = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getCpuInfoBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Additional cpu information. For example,\n Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB\n \n```\n`string cpu_info = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract double\n**getMhzPerCpu**\n()\n\n\u003cbr /\u003e\n\n```\n How fast are these cpus?\n \n```\n`double mhz_per_cpu = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getNumCores**\n()\n\n`int64 num_cores = 1;` \n\n#### public abstract long\n**getNumCoresAllowed**\n()\n\n`int64 num_cores_allowed = 2;`"]]