Class BenchmarkEntry
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.BenchmarkEntry
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, 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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEach unit test or benchmark in a test or benchmark run provides some set of information.Nested 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 intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsExtras(String key) Generic map from result key to value.booleandoubleTotal cpu time used for all iterations (in seconds)static BenchmarkEntrystatic 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.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.getName()The name of the specific benchmark or test (e.g.The name of the specific benchmark or test (e.g.intdoubleThroughput (in MB/s)final UnknownFieldSetdoubleTotal wall time used for all iterations (in seconds)inthashCode()protected GeneratedMessageV3.FieldAccessorTableprotected MapFieldinternalGetMapField(int number) final booleanstatic BenchmarkEntry.Builderstatic BenchmarkEntry.BuildernewBuilder(BenchmarkEntry prototype) protected BenchmarkEntry.Builderprotected Objectstatic BenchmarkEntryparseDelimitedFrom(InputStream input) static BenchmarkEntryparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static BenchmarkEntryparseFrom(byte[] data) static BenchmarkEntryparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static BenchmarkEntryparseFrom(ByteString data) static BenchmarkEntryparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static BenchmarkEntryparseFrom(CodedInputStream input) static BenchmarkEntryparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static BenchmarkEntryparseFrom(InputStream input) static BenchmarkEntryparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static BenchmarkEntryparseFrom(ByteBuffer data) static BenchmarkEntryparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<BenchmarkEntry> 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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
ITERS_FIELD_NUMBER
public static final int ITERS_FIELD_NUMBER- See Also:
-
CPU_TIME_FIELD_NUMBER
public static final int CPU_TIME_FIELD_NUMBER- See Also:
-
WALL_TIME_FIELD_NUMBER
public static final int WALL_TIME_FIELD_NUMBER- See Also:
-
THROUGHPUT_FIELD_NUMBER
public static final int THROUGHPUT_FIELD_NUMBER- See Also:
-
EXTRAS_FIELD_NUMBER
public static final int EXTRAS_FIELD_NUMBER- See Also:
-
METRICS_FIELD_NUMBER
public static final int METRICS_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
-
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.
-
getIters
public long getIters()If a benchmark, how many iterations it was run for
int64 iters = 2;- Specified by:
getItersin interfaceBenchmarkEntryOrBuilder- Returns:
- The iters.
-
getCpuTime
public double getCpuTime()Total cpu time used for all iterations (in seconds)
double cpu_time = 3;- Specified by:
getCpuTimein interfaceBenchmarkEntryOrBuilder- Returns:
- The cpuTime.
-
getWallTime
public double getWallTime()Total wall time used for all iterations (in seconds)
double wall_time = 4;- Specified by:
getWallTimein interfaceBenchmarkEntryOrBuilder- Returns:
- The wallTime.
-
getThroughput
public double getThroughput()Throughput (in MB/s)
double throughput = 5;- Specified by:
getThroughputin interfaceBenchmarkEntryOrBuilder- Returns:
- The throughput.
-
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
-
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
-
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
-
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
-
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
-
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 BenchmarkEntry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static BenchmarkEntry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static BenchmarkEntry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BenchmarkEntry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BenchmarkEntry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BenchmarkEntry 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
-