Class BenchmarkEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BenchmarkEntry.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>
org.tensorflow.proto.BenchmarkEntry.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, BenchmarkEntryOrBuilder
- Enclosing class:
BenchmarkEntry
public static final class BenchmarkEntry.Builder
extends GeneratedMessageV3.Builder<BenchmarkEntry.Builder>
implements BenchmarkEntryOrBuilder
Each unit test or benchmark in a test or benchmark run provides some set of information. Here we provide some reasonable keys one would expect to see, with optional key/value pairs for things we haven't considered. This BenchmarkEntry should be emitted by each unit test or benchmark reporter.Protobuf type
tensorflow.BenchmarkEntry-
Method Summary
Modifier and TypeMethodDescriptionaddAllMetrics(Iterable<? extends MetricEntry> values) Metric name, value and expected range.addMetrics(int index, MetricEntry value) Metric name, value and expected range.addMetrics(int index, MetricEntry.Builder builderForValue) Metric name, value and expected range.addMetrics(MetricEntry value) Metric name, value and expected range.addMetrics(MetricEntry.Builder builderForValue) Metric name, value and expected range.Metric name, value and expected range.addMetricsBuilder(int index) Metric name, value and expected range.addRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Total cpu time used for all iterations (in seconds)If a benchmark, how many iterations it was run forMetric name, value and expected range.The name of the specific benchmark or test (e.g.Throughput (in MB/s)Total wall time used for all iterations (in seconds)clone()booleancontainsExtras(String key) Generic map from result key to value.doubleTotal cpu time used for all iterations (in seconds)static final Descriptors.DescriptorDeprecated.intGeneric map from result key to value.Generic map from result key to value.getExtrasOrDefault(String key, EntryValue defaultValue) Generic map from result key to value.getExtrasOrThrow(String key) Generic map from result key to value.longgetIters()If a benchmark, how many iterations it was run forgetMetrics(int index) Metric name, value and expected range.getMetricsBuilder(int index) Metric name, value and expected range.Metric name, value and expected range.intMetric name, value and expected range.Metric name, value and expected range.getMetricsOrBuilder(int index) Metric name, value and expected range.List<? extends MetricEntryOrBuilder> Metric name, value and expected range.Deprecated.getName()The name of the specific benchmark or test (e.g.The name of the specific benchmark or test (e.g.doubleThroughput (in MB/s)doubleTotal wall time used for all iterations (in seconds)protected GeneratedMessageV3.FieldAccessorTableprotected MapFieldinternalGetMapField(int number) protected MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(BenchmarkEntry other) final BenchmarkEntry.BuildermergeUnknownFields(UnknownFieldSet unknownFields) putAllExtras(Map<String, EntryValue> values) Generic map from result key to value.putExtras(String key, EntryValue value) Generic map from result key to value.removeExtras(String key) Generic map from result key to value.removeMetrics(int index) Metric name, value and expected range.setCpuTime(double value) Total cpu time used for all iterations (in seconds)setField(Descriptors.FieldDescriptor field, Object value) setIters(long value) If a benchmark, how many iterations it was run forsetMetrics(int index, MetricEntry value) Metric name, value and expected range.setMetrics(int index, MetricEntry.Builder builderForValue) Metric name, value and expected range.The name of the specific benchmark or test (e.g.setNameBytes(ByteString value) The name of the specific benchmark or test (e.g.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setThroughput(double value) Throughput (in MB/s)final BenchmarkEntry.BuildersetUnknownFields(UnknownFieldSet unknownFields) setWallTime(double value) Total wall time used for all iterations (in seconds)Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetMapField
- Overrides:
internalGetMapFieldin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
internalGetMutableMapField
- Overrides:
internalGetMutableMapFieldin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
setRepeatedField
public BenchmarkEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<BenchmarkEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
mergeFrom
public BenchmarkEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<BenchmarkEntry.Builder>- Throws:
IOException
-
getName
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;- Specified by:
getNamein interfaceBenchmarkEntryOrBuilder- Returns:
- The name.
-
getNameBytes
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;- Specified by:
getNameBytesin interfaceBenchmarkEntryOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getIters
public long getIters()If a benchmark, how many iterations it was run for
int64 iters = 2;- Specified by:
getItersin interfaceBenchmarkEntryOrBuilder- Returns:
- The iters.
-
setIters
If a benchmark, how many iterations it was run for
int64 iters = 2;- Parameters:
value- The iters to set.- Returns:
- This builder for chaining.
-
clearIters
If a benchmark, how many iterations it was run for
int64 iters = 2;- Returns:
- This builder for chaining.
-
getCpuTime
public double getCpuTime()Total cpu time used for all iterations (in seconds)
double cpu_time = 3;- Specified by:
getCpuTimein interfaceBenchmarkEntryOrBuilder- Returns:
- The cpuTime.
-
setCpuTime
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;- Parameters:
value- The cpuTime to set.- Returns:
- This builder for chaining.
-
clearCpuTime
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;- Returns:
- This builder for chaining.
-
getWallTime
public double getWallTime()Total wall time used for all iterations (in seconds)
double wall_time = 4;- Specified by:
getWallTimein interfaceBenchmarkEntryOrBuilder- Returns:
- The wallTime.
-
setWallTime
Total wall time used for all iterations (in seconds)
double wall_time = 4;- Parameters:
value- The wallTime to set.- Returns:
- This builder for chaining.
-
clearWallTime
Total wall time used for all iterations (in seconds)
double wall_time = 4;- Returns:
- This builder for chaining.
-
getThroughput
public double getThroughput()Throughput (in MB/s)
double throughput = 5;- Specified by:
getThroughputin interfaceBenchmarkEntryOrBuilder- Returns:
- The throughput.
-
setThroughput
Throughput (in MB/s)
double throughput = 5;- Parameters:
value- The throughput to set.- Returns:
- This builder for chaining.
-
clearThroughput
Throughput (in MB/s)
double throughput = 5;- Returns:
- This builder for chaining.
-
getExtrasCount
public int getExtrasCount()Description copied from interface:BenchmarkEntryOrBuilderGeneric map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;- Specified by:
getExtrasCountin interfaceBenchmarkEntryOrBuilder
-
containsExtras
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;- Specified by:
containsExtrasin interfaceBenchmarkEntryOrBuilder
-
getExtras
Deprecated.UsegetExtrasMap()instead.- Specified by:
getExtrasin interfaceBenchmarkEntryOrBuilder
-
getExtrasMap
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;- Specified by:
getExtrasMapin interfaceBenchmarkEntryOrBuilder
-
getExtrasOrDefault
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;- Specified by:
getExtrasOrDefaultin interfaceBenchmarkEntryOrBuilder
-
getExtrasOrThrow
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;- Specified by:
getExtrasOrThrowin interfaceBenchmarkEntryOrBuilder
-
clearExtras
-
removeExtras
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; -
getMutableExtras
Deprecated.Use alternate mutation accessors instead. -
putExtras
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; -
putAllExtras
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; -
getMetricsList
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7;- Specified by:
getMetricsListin interfaceBenchmarkEntryOrBuilder
-
getMetricsCount
public int getMetricsCount()Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7;- Specified by:
getMetricsCountin interfaceBenchmarkEntryOrBuilder
-
getMetrics
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7;- Specified by:
getMetricsin interfaceBenchmarkEntryOrBuilder
-
setMetrics
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
setMetrics
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
addMetrics
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
addMetrics
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
addMetrics
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
addMetrics
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
addAllMetrics
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
clearMetrics
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
removeMetrics
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
getMetricsBuilder
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
getMetricsOrBuilder
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7;- Specified by:
getMetricsOrBuilderin interfaceBenchmarkEntryOrBuilder
-
getMetricsOrBuilderList
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7;- Specified by:
getMetricsOrBuilderListin interfaceBenchmarkEntryOrBuilder
-
addMetricsBuilder
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
addMetricsBuilder
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
getMetricsBuilderList
Metric name, value and expected range. This can include accuracy metrics typically used to determine whether the accuracy test has passed
repeated .tensorflow.MetricEntry metrics = 7; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<BenchmarkEntry.Builder>
-