publiczna klasa końcowa 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.
tensorflow.BenchmarkEntry Klasy zagnieżdżone
| klasa | BenchmarkEntry.Builder | Each unit test or benchmark in a test or benchmark run provides some set of information. | |
Stałe
| wew | CPU_TIME_FIELD_NUMBER | |
| wew | EXTRAS_FIELD_NUMBER | |
| wew | ITERS_FIELD_NUMBER | |
| wew | METRICS_FIELD_NUMBER | |
| wew | NAME_FIELD_NUMBER | |
| wew | THROUGHPUT_FIELD_NUMBER | |
| wew | WALL_TIME_FIELD_NUMBER |
Metody publiczne
| wartość logiczna | zawieraDodatki (klawisz ciągu) Generic map from result key to value. |
| wartość logiczna | równa się (obiekt obiektu) |
| podwójnie | pobierzCpuTime () Total cpu time used for all iterations (in seconds) double cpu_time = 3; |
| statyczny wpis do testu porównawczego | |
| Wpis wzorcowy | |
| końcowy statyczny com.google.protobuf.Descriptors.Descriptor | |
| Mapa<String, EntryValue > | pobierz dodatki () Zamiast tego użyj getExtrasMap() . |
| wew | getExtrasCount () Generic map from result key to value. |
| Mapa<String, EntryValue > | pobierzMapęDodatków () Generic map from result key to value. |
| Wartość wpisu | getExtrasOrDefault (klucz ciągu, wartość domyślna EntryValue ) Generic map from result key to value. |
| Wartość wpisu | getExtrasOrThrow (klawisz ciągu) Generic map from result key to value. |
| długi | getIters () If a benchmark, how many iterations it was run for int64 iters = 2; |
| Wpis metryczny | getMetrics (indeks int) Metric name, value and expected range. |
| wew | getMetricsCount () Metric name, value and expected range. |
| Lista< Metryka > | getMetricsList () Metric name, value and expected range. |
| MetricEntryOrBuilder | getMetricsOrBuilder (indeks int) Metric name, value and expected range. |
| Lista<? rozszerza MetricEntryOrBuilder > | getMetricsOrBuilderList () Metric name, value and expected range. |
| Smyczkowy | pobierz nazwę () 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. |
| wew | |
| podwójnie | uzyskaj przepustowość () Throughput (in MB/s) double throughput = 5; |
| końcowy com.google.protobuf.UnknownFieldSet | |
| podwójnie | getWallTime () Total wall time used for all iterations (in seconds) double wall_time = 4; |
| wew | hashCode () |
| końcowa wartość logiczna | |
| statyczny BenchmarkEntry.Builder | nowyBuilder () |
| statyczny BenchmarkEntry.Builder | newBuilder (prototyp BenchmarkEntry ) |
| BenchmarkEntry.Builder | |
| statyczny wpis do testu porównawczego | parseDelimitedFrom (wejście strumienia wejściowego) |
| statyczny wpis do testu porównawczego | parseDelimitedFrom (dane wejścioweInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
| statyczny wpis do testu porównawczego | parseFrom (dane ByteBuffer) |
| statyczny wpis do testu porównawczego | parseFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
| statyczny wpis do testu porównawczego | parseFrom (dane ByteBuffer, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
| statyczny wpis do testu porównawczego | parseFrom (wejście com.google.protobuf.CodedInputStream) |
| statyczny wpis do testu porównawczego | parseFrom (bajt [] dane, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry) |
| statyczny wpis do testu porównawczego | parseFrom (dane com.google.protobuf.ByteString) |
| statyczny wpis do testu porównawczego | parseFrom (dane wejścioweInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
| statyczny wpis do testu porównawczego | parseFrom (dane com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
| statyczny | parser () |
| BenchmarkEntry.Builder | |
| próżnia | writeTo (wyjście com.google.protobuf.CodedOutputStream) |
Metody dziedziczone
Stałe
publiczny statyczny końcowy int CPU_TIME_FIELD_NUMBER
Wartość stała: 3
publiczny statyczny końcowy int EXTRAS_FIELD_NUMBER
Wartość stała: 6
publiczny statyczny końcowy int ITERS_FIELD_NUMBER
Wartość stała: 2
publiczny statyczny końcowy int METRICS_FIELD_NUMBER
Wartość stała: 7
publiczny statyczny końcowy int NAME_FIELD_NUMBER
Wartość stała: 1
publiczny statyczny końcowy int THROUGHPUT_FIELD_NUMBER
Wartość stała: 5
publiczny statyczny końcowy int WALL_TIME_FIELD_NUMBER
Wartość stała: 4
Metody publiczne
publiczna wartość logiczna zawieraDodatki (klucz ciąg)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; publiczna wartość logiczna równa się (obiekt obiektu)
publiczny podwójny getCpuTime ()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3; public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
publiczny 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; publiczny EntryValue getExtrasOrDefault (klucz ciągu, wartość domyślna EntryValue )
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; public EntryValue getExtrasOrThrow (klucz ciąg)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; publiczne długie getIters ()
If a benchmark, how many iterations it was run for
int64 iters = 2; public MetricEntry getMetrics (indeks int)
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; publiczny 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 (indeks int)
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; lista publiczna<? rozszerza 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 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; publiczny getParserForType ()
publiczny int getSerializedSize ()
publiczny podwójny getThroughput ()
Throughput (in MB/s)
double throughput = 5; publiczny finał com.google.protobuf.UnknownFieldSet getUnknownFields ()
publiczny podwójny getWallTime ()
Total wall time used for all iterations (in seconds)
double wall_time = 4; publiczny int hashCode ()
publiczna końcowa wartość logiczna isInitialized ()
publiczny statyczny BenchmarkEntry parseDelimitedFrom (dane wejściowe wejściowe, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Rzuca
| Wyjątek IO |
|---|
public static BenchmarkEntry parseFrom (dane ByteBuffer)
Rzuca
| Nieprawidłowy wyjątekProtocolBufferException |
|---|
public static BenchmarkEntry parseFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Rzuca
| Wyjątek IO |
|---|
public static BenchmarkEntry parseFrom (dane ByteBuffer, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Rzuca
| Nieprawidłowy wyjątekProtocolBufferException |
|---|
public static BenchmarkEntry parseFrom (wejście com.google.protobuf.CodedInputStream)
Rzuca
| Wyjątek IO |
|---|
publiczny statyczny BenchmarkEntry parseFrom (bajt [] dane, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)
Rzuca
| Nieprawidłowy wyjątekProtocolBufferException |
|---|
public static BenchmarkEntry parseFrom (dane com.google.protobuf.ByteString)
Rzuca
| Nieprawidłowy wyjątekProtocolBufferException |
|---|
public static BenchmarkEntry parseFrom (dane wejściowe wejściowe, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Rzuca
| Wyjątek IO |
|---|
publiczny statyczny BenchmarkEntry parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Rzuca
| Nieprawidłowy wyjątekProtocolBufferException |
|---|
publiczna statyka parser ()
public void writeTo (wyjście com.google.protobuf.CodedOutputStream)
Rzuca
| Wyjątek IO |
|---|