BenchmarkEntry.Builder

public static final class BenchmarkEntry.Builder

 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

Public Methods

BenchmarkEntry.Builder
addAllMetrics(Iterable<? extends MetricEntry> values)
 Metric name, value and expected range.
BenchmarkEntry.Builder
addMetrics(int index, MetricEntry.Builder builderForValue)
 Metric name, value and expected range.
BenchmarkEntry.Builder
addMetrics(int index, MetricEntry value)
 Metric name, value and expected range.
BenchmarkEntry.Builder
addMetrics(MetricEntry value)
 Metric name, value and expected range.
BenchmarkEntry.Builder
addMetrics(MetricEntry.Builder builderForValue)
 Metric name, value and expected range.
MetricEntry.Builder
addMetricsBuilder(int index)
 Metric name, value and expected range.
MetricEntry.Builder
addMetricsBuilder()
 Metric name, value and expected range.
BenchmarkEntry.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BenchmarkEntry
build()
BenchmarkEntry
BenchmarkEntry.Builder
clear()
BenchmarkEntry.Builder
clearCpuTime()
 Total cpu time used for all iterations (in seconds)
 
double cpu_time = 3;
BenchmarkEntry.Builder
BenchmarkEntry.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BenchmarkEntry.Builder
clearIters()
 If a benchmark, how many iterations it was run for
 
int64 iters = 2;
BenchmarkEntry.Builder
clearMetrics()
 Metric name, value and expected range.
BenchmarkEntry.Builder
clearName()
 The name of the specific benchmark or test
 (e.g.
BenchmarkEntry.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BenchmarkEntry.Builder
clearThroughput()
 Throughput (in MB/s)
 
double throughput = 5;
BenchmarkEntry.Builder
clearWallTime()
 Total wall time used for all iterations (in seconds)
 
double wall_time = 4;
BenchmarkEntry.Builder
clone()
boolean
containsExtras(String key)
 Generic map from result key to value.
double
getCpuTime()
 Total cpu time used for all iterations (in seconds)
 
double cpu_time = 3;
BenchmarkEntry
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Map<String, EntryValue>
getExtras()
Use getExtrasMap() instead.
int
getExtrasCount()
 Generic map from result key to value.
Map<String, EntryValue>
getExtrasMap()
 Generic map from result key to value.
EntryValue
getExtrasOrDefault(String key, EntryValue defaultValue)
 Generic map from result key to value.
EntryValue
getExtrasOrThrow(String key)
 Generic map from result key to value.
long
getIters()
 If a benchmark, how many iterations it was run for
 
int64 iters = 2;
MetricEntry
getMetrics(int index)
 Metric name, value and expected range.
MetricEntry.Builder
getMetricsBuilder(int index)
 Metric name, value and expected range.
List<MetricEntry.Builder>
getMetricsBuilderList()
 Metric name, value and expected range.
int
getMetricsCount()
 Metric name, value and expected range.
List<MetricEntry>
getMetricsList()
 Metric name, value and expected range.
MetricEntryOrBuilder
getMetricsOrBuilder(int index)
 Metric name, value and expected range.
List<? extends MetricEntryOrBuilder>
getMetricsOrBuilderList()
 Metric name, value and expected range.
Map<String, EntryValue>
getMutableExtras()
Use alternate mutation accessors instead.
String
getName()
 The name of the specific benchmark or test
 (e.g.
com.google.protobuf.ByteString
getNameBytes()
 The name of the specific benchmark or test
 (e.g.
double
getThroughput()
 Throughput (in MB/s)
 
double throughput = 5;
double
getWallTime()
 Total wall time used for all iterations (in seconds)
 
double wall_time = 4;
final boolean
BenchmarkEntry.Builder
mergeFrom(com.google.protobuf.Message other)
BenchmarkEntry.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
final BenchmarkEntry.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BenchmarkEntry.Builder
putAllExtras(Map<String, EntryValue> values)
 Generic map from result key to value.
BenchmarkEntry.Builder
putExtras(String key, EntryValue value)
 Generic map from result key to value.
BenchmarkEntry.Builder
removeExtras(String key)
 Generic map from result key to value.
BenchmarkEntry.Builder
removeMetrics(int index)
 Metric name, value and expected range.
BenchmarkEntry.Builder
setCpuTime(double value)
 Total cpu time used for all iterations (in seconds)
 
double cpu_time = 3;
BenchmarkEntry.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BenchmarkEntry.Builder
setIters(long value)
 If a benchmark, how many iterations it was run for
 
int64 iters = 2;
BenchmarkEntry.Builder
setMetrics(int index, MetricEntry.Builder builderForValue)
 Metric name, value and expected range.
BenchmarkEntry.Builder
setMetrics(int index, MetricEntry value)
 Metric name, value and expected range.
BenchmarkEntry.Builder
setName(String value)
 The name of the specific benchmark or test
 (e.g.
BenchmarkEntry.Builder
setNameBytes(com.google.protobuf.ByteString value)
 The name of the specific benchmark or test
 (e.g.
BenchmarkEntry.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BenchmarkEntry.Builder
setThroughput(double value)
 Throughput (in MB/s)
 
double throughput = 5;
final BenchmarkEntry.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BenchmarkEntry.Builder
setWallTime(double value)
 Total wall time used for all iterations (in seconds)
 
double wall_time = 4;

Inherited Methods

Public Methods

public BenchmarkEntry.Builder addAllMetrics (Iterable<? extends MetricEntry> values)

 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;

public BenchmarkEntry.Builder addMetrics (int index, MetricEntry.Builder builderForValue)

 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;

public BenchmarkEntry.Builder addMetrics (int index, MetricEntry value)

 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;

public BenchmarkEntry.Builder addMetrics (MetricEntry value)

 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;

public BenchmarkEntry.Builder addMetrics (MetricEntry.Builder builderForValue)

 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;

public MetricEntry.Builder addMetricsBuilder (int index)

 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;

public MetricEntry.Builder 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;

public BenchmarkEntry.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public BenchmarkEntry build ()

public BenchmarkEntry buildPartial ()

public BenchmarkEntry.Builder clear ()

public BenchmarkEntry.Builder clearCpuTime ()

 Total cpu time used for all iterations (in seconds)
 
double cpu_time = 3;

public BenchmarkEntry.Builder clearExtras ()

public BenchmarkEntry.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public BenchmarkEntry.Builder clearIters ()

 If a benchmark, how many iterations it was run for
 
int64 iters = 2;

public BenchmarkEntry.Builder 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;

public BenchmarkEntry.Builder clearName ()

 The name of the specific benchmark or test
 (e.g. BM_AdjustContrast_gpu_B_W_H)
 
string name = 1;

public BenchmarkEntry.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public BenchmarkEntry.Builder clearThroughput ()

 Throughput (in MB/s)
 
double throughput = 5;

public BenchmarkEntry.Builder clearWallTime ()

 Total wall time used for all iterations (in seconds)
 
double wall_time = 4;

public BenchmarkEntry.Builder clone ()

public boolean containsExtras (String key)

 Generic map from result key to value.
 
map<string, .tensorflow.EntryValue> extras = 6;

public double getCpuTime ()

 Total cpu time used for all iterations (in seconds)
 
double cpu_time = 3;

public BenchmarkEntry getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public Map<String, EntryValue> getExtras ()

Use getExtrasMap() instead.

public int getExtrasCount ()

 Generic map from result key to value.
 
map<string, .tensorflow.EntryValue> extras = 6;

public Map<String, EntryValue> getExtrasMap ()

 Generic map from result key to value.
 
map<string, .tensorflow.EntryValue> extras = 6;

public EntryValue getExtrasOrDefault (String key, EntryValue defaultValue)

 Generic map from result key to value.
 
map<string, .tensorflow.EntryValue> extras = 6;

public EntryValue getExtrasOrThrow (String key)

 Generic map from result key to value.
 
map<string, .tensorflow.EntryValue> extras = 6;

public long getIters ()

 If a benchmark, how many iterations it was run for
 
int64 iters = 2;

public MetricEntry getMetrics (int index)

 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;

public MetricEntry.Builder getMetricsBuilder (int index)

 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;

public List<MetricEntry.Builder> 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;

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;

public List<MetricEntry> 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;

public MetricEntryOrBuilder getMetricsOrBuilder (int index)

 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;

public List<? extends MetricEntryOrBuilder> 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;

public Map<String, EntryValue> getMutableExtras ()

Use alternate mutation accessors instead.

public String getName ()

 The name of the specific benchmark or test
 (e.g. BM_AdjustContrast_gpu_B_W_H)
 
string name = 1;

public com.google.protobuf.ByteString getNameBytes ()

 The name of the specific benchmark or test
 (e.g. BM_AdjustContrast_gpu_B_W_H)
 
string name = 1;

public double getThroughput ()

 Throughput (in MB/s)
 
double throughput = 5;

public double getWallTime ()

 Total wall time used for all iterations (in seconds)
 
double wall_time = 4;

public final boolean isInitialized ()

public BenchmarkEntry.Builder mergeFrom (com.google.protobuf.Message other)

public BenchmarkEntry.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public final BenchmarkEntry.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public BenchmarkEntry.Builder putAllExtras (Map<String, EntryValue> values)

 Generic map from result key to value.
 
map<string, .tensorflow.EntryValue> extras = 6;

public BenchmarkEntry.Builder putExtras (String key, EntryValue value)

 Generic map from result key to value.
 
map<string, .tensorflow.EntryValue> extras = 6;

public BenchmarkEntry.Builder removeExtras (String key)

 Generic map from result key to value.
 
map<string, .tensorflow.EntryValue> extras = 6;

public BenchmarkEntry.Builder removeMetrics (int index)

 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;

public BenchmarkEntry.Builder setCpuTime (double value)

 Total cpu time used for all iterations (in seconds)
 
double cpu_time = 3;

public BenchmarkEntry.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public BenchmarkEntry.Builder setIters (long value)

 If a benchmark, how many iterations it was run for
 
int64 iters = 2;

public BenchmarkEntry.Builder setMetrics (int index, MetricEntry.Builder builderForValue)

 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;

public BenchmarkEntry.Builder setMetrics (int index, MetricEntry value)

 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;

public BenchmarkEntry.Builder setName (String value)

 The name of the specific benchmark or test
 (e.g. BM_AdjustContrast_gpu_B_W_H)
 
string name = 1;

public BenchmarkEntry.Builder setNameBytes (com.google.protobuf.ByteString value)

 The name of the specific benchmark or test
 (e.g. BM_AdjustContrast_gpu_B_W_H)
 
string name = 1;

public BenchmarkEntry.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

public BenchmarkEntry.Builder setThroughput (double value)

 Throughput (in MB/s)
 
double throughput = 5;

public final BenchmarkEntry.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public BenchmarkEntry.Builder setWallTime (double value)

 Total wall time used for all iterations (in seconds)
 
double wall_time = 4;