Class TestResults
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.TestResults
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, TestResultsOrBuilder
The output of one benchmark / test run. Each run contains a list of tests or benchmarks, stored as BenchmarkEntry messages. This message should be emitted by the reporter (which runs the test / BM in a subprocess and then reads the emitted BenchmarkEntry messages; usually from a serialized json file, finally collecting them along with additional information about the test run.Protobuf type
tensorflow.TestResults- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of benchmark.static final classThe output of one benchmark / test run.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 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 TypeMethodDescriptionboolean.tensorflow.TestResults.BenchmarkType benchmark_type = 10;int.tensorflow.TestResults.BenchmarkType benchmark_type = 10;The configuration of the build (compiled opt?The configuration of the build (compiled opt?The commit id (git hash or changelist)The commit id (git hash or changelist)static TestResultsstatic final Descriptors.DescriptorThe list of tests or benchmarks in this run.The list of tests or benchmarks in this run.Machine-specific parameters (Platform and CPU info)Machine-specific parameters (Platform and CPU info)getName()Benchmark target identifier.Benchmark target identifier.Run-specific parameters (arguments, etc)Run-specific parameters (arguments, etc)Used for differentiating between continuous and debug builds.Used for differentiating between continuous and debug builds.doubleThe amount of time the total run took (wall time in seconds)intlongThe time the run started (in seconds of UTC time since Unix epoch)The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_testThe target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_testTensorFlow version this benchmark runs against.TensorFlow version this benchmark runs against.final UnknownFieldSetbooleanThe configuration of the build (compiled opt?booleanThe commit id (git hash or changelist)booleanThe list of tests or benchmarks in this run.inthashCode()booleanMachine-specific parameters (Platform and CPU info)booleanRun-specific parameters (arguments, etc)protected GeneratedMessageV3.FieldAccessorTablefinal booleanstatic TestResults.Builderstatic TestResults.BuildernewBuilder(TestResults prototype) protected TestResults.Builderprotected Objectstatic TestResultsparseDelimitedFrom(InputStream input) static TestResultsparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static TestResultsparseFrom(byte[] data) static TestResultsparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static TestResultsparseFrom(ByteString data) static TestResultsparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static TestResultsparseFrom(CodedInputStream input) static TestResultsparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static TestResultsparseFrom(InputStream input) static TestResultsparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static TestResultsparseFrom(ByteBuffer data) static TestResultsparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<TestResults> 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, internalGetMapField, 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
-
TARGET_FIELD_NUMBER
public static final int TARGET_FIELD_NUMBER- See Also:
-
ENTRIES_FIELD_NUMBER
public static final int ENTRIES_FIELD_NUMBER- See Also:
-
BUILD_CONFIGURATION_FIELD_NUMBER
public static final int BUILD_CONFIGURATION_FIELD_NUMBER- See Also:
-
COMMIT_ID_FIELD_NUMBER
public static final int COMMIT_ID_FIELD_NUMBER- See Also:
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER- See Also:
-
RUN_TIME_FIELD_NUMBER
public static final int RUN_TIME_FIELD_NUMBER- See Also:
-
MACHINE_CONFIGURATION_FIELD_NUMBER
public static final int MACHINE_CONFIGURATION_FIELD_NUMBER- See Also:
-
RUN_CONFIGURATION_FIELD_NUMBER
public static final int RUN_CONFIGURATION_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
BENCHMARK_TYPE_FIELD_NUMBER
public static final int BENCHMARK_TYPE_FIELD_NUMBER- See Also:
-
RUN_MODE_FIELD_NUMBER
public static final int RUN_MODE_FIELD_NUMBER- See Also:
-
TF_VERSION_FIELD_NUMBER
public static final int TF_VERSION_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getTarget
The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
string target = 1;- Specified by:
getTargetin interfaceTestResultsOrBuilder- Returns:
- The target.
-
getTargetBytes
The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_test
string target = 1;- Specified by:
getTargetBytesin interfaceTestResultsOrBuilder- Returns:
- The bytes for target.
-
hasEntries
public boolean hasEntries()The list of tests or benchmarks in this run.
.tensorflow.BenchmarkEntries entries = 2;- Specified by:
hasEntriesin interfaceTestResultsOrBuilder- Returns:
- Whether the entries field is set.
-
getEntries
The list of tests or benchmarks in this run.
.tensorflow.BenchmarkEntries entries = 2;- Specified by:
getEntriesin interfaceTestResultsOrBuilder- Returns:
- The entries.
-
getEntriesOrBuilder
The list of tests or benchmarks in this run.
.tensorflow.BenchmarkEntries entries = 2;- Specified by:
getEntriesOrBuilderin interfaceTestResultsOrBuilder
-
hasBuildConfiguration
public boolean hasBuildConfiguration()The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3;- Specified by:
hasBuildConfigurationin interfaceTestResultsOrBuilder- Returns:
- Whether the buildConfiguration field is set.
-
getBuildConfiguration
The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3;- Specified by:
getBuildConfigurationin interfaceTestResultsOrBuilder- Returns:
- The buildConfiguration.
-
getBuildConfigurationOrBuilder
The configuration of the build (compiled opt? with cuda? any copts?)
.tensorflow.BuildConfiguration build_configuration = 3;- Specified by:
getBuildConfigurationOrBuilderin interfaceTestResultsOrBuilder
-
hasCommitId
public boolean hasCommitId()The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4;- Specified by:
hasCommitIdin interfaceTestResultsOrBuilder- Returns:
- Whether the commitId field is set.
-
getCommitId
The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4;- Specified by:
getCommitIdin interfaceTestResultsOrBuilder- Returns:
- The commitId.
-
getCommitIdOrBuilder
The commit id (git hash or changelist)
.tensorflow.CommitId commit_id = 4;- Specified by:
getCommitIdOrBuilderin interfaceTestResultsOrBuilder
-
getStartTime
public long getStartTime()The time the run started (in seconds of UTC time since Unix epoch)
int64 start_time = 5;- Specified by:
getStartTimein interfaceTestResultsOrBuilder- Returns:
- The startTime.
-
getRunTime
public double getRunTime()The amount of time the total run took (wall time in seconds)
double run_time = 6;- Specified by:
getRunTimein interfaceTestResultsOrBuilder- Returns:
- The runTime.
-
hasMachineConfiguration
public boolean hasMachineConfiguration()Machine-specific parameters (Platform and CPU info)
.tensorflow.MachineConfiguration machine_configuration = 7;- Specified by:
hasMachineConfigurationin interfaceTestResultsOrBuilder- Returns:
- Whether the machineConfiguration field is set.
-
getMachineConfiguration
Machine-specific parameters (Platform and CPU info)
.tensorflow.MachineConfiguration machine_configuration = 7;- Specified by:
getMachineConfigurationin interfaceTestResultsOrBuilder- Returns:
- The machineConfiguration.
-
getMachineConfigurationOrBuilder
Machine-specific parameters (Platform and CPU info)
.tensorflow.MachineConfiguration machine_configuration = 7;- Specified by:
getMachineConfigurationOrBuilderin interfaceTestResultsOrBuilder
-
hasRunConfiguration
public boolean hasRunConfiguration()Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8;- Specified by:
hasRunConfigurationin interfaceTestResultsOrBuilder- Returns:
- Whether the runConfiguration field is set.
-
getRunConfiguration
Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8;- Specified by:
getRunConfigurationin interfaceTestResultsOrBuilder- Returns:
- The runConfiguration.
-
getRunConfigurationOrBuilder
Run-specific parameters (arguments, etc)
.tensorflow.RunConfiguration run_configuration = 8;- Specified by:
getRunConfigurationOrBuilderin interfaceTestResultsOrBuilder
-
getName
Benchmark target identifier.
string name = 9;- Specified by:
getNamein interfaceTestResultsOrBuilder- Returns:
- The name.
-
getNameBytes
Benchmark target identifier.
string name = 9;- Specified by:
getNameBytesin interfaceTestResultsOrBuilder- Returns:
- The bytes for name.
-
getBenchmarkTypeValue
public int getBenchmarkTypeValue().tensorflow.TestResults.BenchmarkType benchmark_type = 10;- Specified by:
getBenchmarkTypeValuein interfaceTestResultsOrBuilder- Returns:
- The enum numeric value on the wire for benchmarkType.
-
getBenchmarkType
.tensorflow.TestResults.BenchmarkType benchmark_type = 10;- Specified by:
getBenchmarkTypein interfaceTestResultsOrBuilder- Returns:
- The benchmarkType.
-
getRunMode
Used for differentiating between continuous and debug builds. Must be one of: * cbuild: results from continuous build. * presubmit: results from oneshot requests. * culprit: results from culprit finder rerun.
string run_mode = 11;- Specified by:
getRunModein interfaceTestResultsOrBuilder- Returns:
- The runMode.
-
getRunModeBytes
Used for differentiating between continuous and debug builds. Must be one of: * cbuild: results from continuous build. * presubmit: results from oneshot requests. * culprit: results from culprit finder rerun.
string run_mode = 11;- Specified by:
getRunModeBytesin interfaceTestResultsOrBuilder- Returns:
- The bytes for runMode.
-
getTfVersion
TensorFlow version this benchmark runs against. This can be either set to full version or just the major version.
string tf_version = 12;- Specified by:
getTfVersionin interfaceTestResultsOrBuilder- Returns:
- The tfVersion.
-
getTfVersionBytes
TensorFlow version this benchmark runs against. This can be either set to full version or just the major version.
string tf_version = 12;- Specified by:
getTfVersionBytesin interfaceTestResultsOrBuilder- Returns:
- The bytes for tfVersion.
-
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 TestResults parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static TestResults parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static TestResults parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TestResults parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TestResults parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TestResults 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
-