public final class BenchmarkEntry extends com.google.protobuf.GeneratedMessageV3 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
Modifier and Type | Class and Description |
---|---|
static class |
BenchmarkEntry.Builder
Each unit test or benchmark in a test or benchmark run provides
some set of information.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
CPU_TIME_FIELD_NUMBER |
static int |
EXTRAS_FIELD_NUMBER |
static int |
ITERS_FIELD_NUMBER |
static int |
METRICS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
THROUGHPUT_FIELD_NUMBER |
static int |
WALL_TIME_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsExtras(String key)
Generic map from result key to value.
|
boolean |
equals(Object obj) |
double |
getCpuTime()
Total cpu time used for all iterations (in seconds)
|
static BenchmarkEntry |
getDefaultInstance() |
BenchmarkEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,EntryValue> |
getExtras()
Deprecated.
|
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
|
MetricEntry |
getMetrics(int index)
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.
|
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.
|
com.google.protobuf.Parser<BenchmarkEntry> |
getParserForType() |
int |
getSerializedSize() |
double |
getThroughput()
Throughput (in MB/s)
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
double |
getWallTime()
Total wall time used for all iterations (in seconds)
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static BenchmarkEntry.Builder |
newBuilder() |
static BenchmarkEntry.Builder |
newBuilder(BenchmarkEntry prototype) |
BenchmarkEntry.Builder |
newBuilderForType() |
protected BenchmarkEntry.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static BenchmarkEntry |
parseDelimitedFrom(InputStream input) |
static BenchmarkEntry |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BenchmarkEntry |
parseFrom(byte[] data) |
static BenchmarkEntry |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BenchmarkEntry |
parseFrom(ByteBuffer data) |
static BenchmarkEntry |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BenchmarkEntry |
parseFrom(com.google.protobuf.ByteString data) |
static BenchmarkEntry |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BenchmarkEntry |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BenchmarkEntry |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BenchmarkEntry |
parseFrom(InputStream input) |
static BenchmarkEntry |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BenchmarkEntry> |
parser() |
BenchmarkEntry.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int NAME_FIELD_NUMBER
public static final int ITERS_FIELD_NUMBER
public static final int CPU_TIME_FIELD_NUMBER
public static final int WALL_TIME_FIELD_NUMBER
public static final int THROUGHPUT_FIELD_NUMBER
public static final int EXTRAS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public String getName()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;
getName
in interface BenchmarkEntryOrBuilder
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;
getNameBytes
in interface BenchmarkEntryOrBuilder
public long getIters()
If a benchmark, how many iterations it was run for
int64 iters = 2;
getIters
in interface BenchmarkEntryOrBuilder
public double getCpuTime()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;
getCpuTime
in interface BenchmarkEntryOrBuilder
public double getWallTime()
Total wall time used for all iterations (in seconds)
double wall_time = 4;
getWallTime
in interface BenchmarkEntryOrBuilder
public double getThroughput()
Throughput (in MB/s)
double throughput = 5;
getThroughput
in interface BenchmarkEntryOrBuilder
public int getExtrasCount()
BenchmarkEntryOrBuilder
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
getExtrasCount
in interface BenchmarkEntryOrBuilder
public boolean containsExtras(String key)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
containsExtras
in interface BenchmarkEntryOrBuilder
@Deprecated public Map<String,EntryValue> getExtras()
getExtrasMap()
instead.getExtras
in interface BenchmarkEntryOrBuilder
public Map<String,EntryValue> getExtrasMap()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
getExtrasMap
in interface BenchmarkEntryOrBuilder
public EntryValue getExtrasOrDefault(String key, EntryValue defaultValue)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
getExtrasOrDefault
in interface BenchmarkEntryOrBuilder
public EntryValue getExtrasOrThrow(String key)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
getExtrasOrThrow
in interface BenchmarkEntryOrBuilder
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;
getMetricsList
in interface BenchmarkEntryOrBuilder
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;
getMetricsOrBuilderList
in interface BenchmarkEntryOrBuilder
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;
getMetricsCount
in interface BenchmarkEntryOrBuilder
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;
getMetrics
in interface BenchmarkEntryOrBuilder
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;
getMetricsOrBuilder
in interface BenchmarkEntryOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static BenchmarkEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BenchmarkEntry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BenchmarkEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BenchmarkEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BenchmarkEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BenchmarkEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BenchmarkEntry parseFrom(InputStream input) throws IOException
IOException
public static BenchmarkEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static BenchmarkEntry parseDelimitedFrom(InputStream input) throws IOException
IOException
public static BenchmarkEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static BenchmarkEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static BenchmarkEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public BenchmarkEntry.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static BenchmarkEntry.Builder newBuilder()
public static BenchmarkEntry.Builder newBuilder(BenchmarkEntry prototype)
public BenchmarkEntry.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected BenchmarkEntry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static BenchmarkEntry getDefaultInstance()
public static com.google.protobuf.Parser<BenchmarkEntry> parser()
public com.google.protobuf.Parser<BenchmarkEntry> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public BenchmarkEntry getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2015–2019. All rights reserved.