שיעור הגמר הציבורי BenchmarkEntry
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
tensorflow.BenchmarkEntry
כיתות מקוננות
מעמד | BenchmarkEntry.Builder | Each unit test or benchmark in a test or benchmark run provides some set of information. |
קבועים
int | CPU_TIME_FIELD_NUMBER | |
int | EXTRAS_FIELD_NUMBER | |
int | ITERS_FIELD_NUMBER | |
int | METRICS_FIELD_NUMBER | |
int | NAME_FIELD_NUMBER | |
int | THROUGHPUT_FIELD_NUMBER | |
int | WALL_TIME_FIELD_NUMBER |
שיטות ציבוריות
בוליאני | containsExtras (מפתח מחרוזת) Generic map from result key to value. |
בוליאני | שווה (Object obj) |
לְהַכפִּיל | getCpuTime () Total cpu time used for all iterations (in seconds) double cpu_time = 3; |
סטטי BenchmarkEntry | |
BenchmarkEntry | |
final static com.google.protobuf.Descriptors.Descriptor | |
מפה<String, EntryValue > | getExtras () השתמש getExtrasMap() במקום זאת. |
int | getExtrasCount () Generic map from result key to value. |
מפה<String, EntryValue > | getExtrasMap () Generic map from result key to value. |
EntryValue | |
EntryValue | getExtrasOrThrow (מפתח מחרוזת) Generic map from result key to value. |
ארוך | getIters () If a benchmark, how many iterations it was run for int64 iters = 2; |
MetricEntry | getMetrics (int index) Metric name, value and expected range. |
int | getMetricsCount () Metric name, value and expected range. |
רשימה< MetricEntry > | getMetricsList () Metric name, value and expected range. |
MetricEntryOrBuilder | getMetricsOrBuilder (int index) Metric name, value and expected range. |
רשימה<? מרחיב את MetricEntryOrBuilder > | getMetricsOrBuilderList () Metric name, value and expected range. |
חוּט | 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. |
int | |
לְהַכפִּיל | getThroughput () Throughput (in MB/s) double throughput = 5; |
final com.google.protobuf.UnknownFieldSet | |
לְהַכפִּיל | getWallTime () Total wall time used for all iterations (in seconds) double wall_time = 4; |
int | hashcode () |
בוליאנית סופית | |
סטטי BenchmarkEntry.Builder | newBuilder () |
סטטי BenchmarkEntry.Builder | newBuilder (אב-טיפוס BenchmarkEntry ) |
BenchmarkEntry.Builder | |
סטטי BenchmarkEntry | parseDelimitedFrom (קלט InputStream) |
סטטי BenchmarkEntry | parseDelimitedFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי BenchmarkEntry | parseFrom (נתוני ByteBuffer) |
סטטי BenchmarkEntry | parseFrom (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי BenchmarkEntry | parseFrom (נתוני ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי BenchmarkEntry | parseFrom (קלט com.google.protobuf.CodedInputStream) |
סטטי BenchmarkEntry | parseFrom (נתוני byte[], com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי BenchmarkEntry | parseFrom (נתוני com.google.protobuf.ByteString) |
סטטי BenchmarkEntry | parseFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי BenchmarkEntry | parseFrom (נתוני com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטָטִי | מנתח () |
BenchmarkEntry.Builder | toBuilder () |
בָּטֵל | writeTo (פלט com.google.protobuf.CodedOutputStream) |
שיטות בירושה
קבועים
CPU_TIME_FIELD_NUMBER _
ערך קבוע: 3
גמר סטטי ציבורי EXTRAS_FIELD_NUMBER
ערך קבוע: 6
גמר סטטי ציבורי ITERS_FIELD_NUMBER
ערך קבוע: 2
אינט סופי סטטי ציבורי METRICS_FIELD_NUMBER
ערך קבוע: 7
גמר סטטי ציבורי NAME_FIELD_NUMBER
ערך קבוע: 1
גמר סטטי ציבורי THROUGHPUT_FIELD_NUMBER
ערך קבוע: 5
גמר סטטי ציבורי WALL_TIME_FIELD_NUMBER
ערך קבוע: 4
שיטות ציבוריות
בוליאני ציבורי מכילExtras (מפתח מחרוזת)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
שווה ערך בוליאני ציבורי (Object obj)
getCpuTime כפול ()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public int getExtrasCount ()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
מפה ציבורית<String, EntryValue > getExtrasMap ()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public EntryValue getExtrasOrDefault (מפתח מחרוזת, EntryValue defaultValue)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public EntryValue getExtrasOrThrow (מפתח מחרוזת)
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 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;
רשימה ציבורית< 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;
רשימה ציבורית<? מרחיב את 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;
מחרוזת ציבורית 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;
פּוּמְבֵּי getParserForType ()
public int getSerializedSize ()
getThroughput כפול ()
Throughput (in MB/s)
double throughput = 5;
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
getWallTime כפול ציבורי ()
Total wall time used for all iterations (in seconds)
double wall_time = 4;
public int hashCode ()
בוליאני הסופי הציבורי הוא אתחול ()
Public static BenchmarkEntry parseDelimitedFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
public static BenchmarkEntry parseFrom (com.google.protobuf.CodedInputStream קלט, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
public static BenchmarkEntry parseFrom (נתוני ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
public static BenchmarkEntry parseFrom (נתוני byte[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
Public static BenchmarkEntry parseFrom (נתוני com.google.protobuf.ByteString)
זורק
InvalidProtocolBufferException |
---|
Public static BenchmarkEntry parseFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
Public static BenchmarkEntry parseFrom (נתוני com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
סטטי ציבורי מנתח ()
public void writeTo (פלט com.google.protobuf.CodedOutputStream)
זורק
IOException |
---|