classe finale pubblica 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 Classi nidificate
| classe | BenchmarkEntry.Builder | Each unit test or benchmark in a test or benchmark run provides some set of information. | |
Costanti
| int | CPU_TIME_FIELD_NUMBER | |
| int | EXTRA_FIELD_NUMBER | |
| int | ITERS_FIELD_NUMBER | |
| int | NUMERO_CAMPO_METRICHE | |
| int | NOME_CAMPO_NUMERO | |
| int | THROUGHPUT_FIELD_NUMBER | |
| int | WALL_TIME_FIELD_NUMBER |
Metodi pubblici
| booleano | contieneExtra (tasto String) Generic map from result key to value. |
| booleano | è uguale a (Oggetto oggetto) |
| raddoppiare | getCpuTime () Total cpu time used for all iterations (in seconds) double cpu_time = 3; |
| Voce di benchmark statica | |
| Voce di benchmark | |
| com.google.protobuf.Descriptors.Descriptor statico finale | |
| Mappa<String, EntryValue > | getExtra () Utilizzare invece getExtrasMap() . |
| int | getExtrasCount () Generic map from result key to value. |
| Mappa<String, EntryValue > | getExtrasMap () Generic map from result key to value. |
| Valore di immissione | |
| Valore di immissione | getExtrasOrThrow (chiave String) Generic map from result key to value. |
| lungo | getIters () If a benchmark, how many iterations it was run for int64 iters = 2; |
| Voce metrica | getMetrics (indice int) Metric name, value and expected range. |
| int | getMetricsCount () Metric name, value and expected range. |
| Elenco< Voce metrica > | getMetricsList () Metric name, value and expected range. |
| MetricEntryOrBuilder | getMetricsOrBuilder (indice int) Metric name, value and expected range. |
| Elenco<? estende MetricEntryOrBuilder > | getMetricsOrBuilderList () Metric name, value and expected range. |
| Corda | getNome () The name of the specific benchmark or test (e.g. |
| com.google.protobuf.ByteString | getNomeBytes () The name of the specific benchmark or test (e.g. |
| int | |
| raddoppiare | getThroughput () Throughput (in MB/s) double throughput = 5; |
| finale com.google.protobuf.UnknownFieldSet | |
| raddoppiare | getWallTime () Total wall time used for all iterations (in seconds) double wall_time = 4; |
| int | codicehash () |
| booleano finale | |
| BenchmarkEntry.Builder statico | |
| BenchmarkEntry.Builder statico | newBuilder (prototipo BenchmarkEntry ) |
| BenchmarkEntry.Builder | |
| Voce di benchmark statica | parseDelimitedFrom (input InputStream) |
| Voce di benchmark statica | parseDelimitedFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| Voce di benchmark statica | parseFrom (dati ByteBuffer) |
| Voce di benchmark statica | parseFrom (input com.google.protobuf.CodedInputStream, estensione com.google.protobuf.ExtensionRegistryLiteRegistry) |
| Voce di benchmark statica | parseFrom (dati ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| Voce di benchmark statica | parseFrom (ingresso com.google.protobuf.CodedInputStream) |
| Voce di benchmark statica | parseFrom (byte[] dati, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| Voce di benchmark statica | parseFrom (dati com.google.protobuf.ByteString) |
| Voce di benchmark statica | parseFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| Voce di benchmark statica | parseFrom (dati com.google.protobuf.ByteString, estensione com.google.protobuf.ExtensionRegistryLiteRegistry) |
| statico | analizzatore () |
| BenchmarkEntry.Builder | toBuilder () |
| vuoto | writeTo (output com.google.protobuf.CodedOutputStream) |
Metodi ereditati
Costanti
public static final int CPU_TIME_FIELD_NUMBER
Valore costante: 3
public static final int EXTRAS_FIELD_NUMBER
Valore costante: 6
pubblico statico finale int ITERS_FIELD_NUMBER
Valore costante: 2
public static final int METRICS_FIELD_NUMBER
Valore costante: 7
public static final int NAME_FIELD_NUMBER
Valore costante: 1
public static final int THROUGHPUT_FIELD_NUMBER
Valore costante: 5
public static final int WALL_TIME_FIELD_NUMBER
Valore costante: 4
Metodi pubblici
booleano pubblico contieneExtra (chiave String)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; booleano pubblico è uguale a (Oggetto obj)
pubblico doppio 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; mappa pubblica<String, EntryValue > getExtrasMap ()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; public EntryValue getExtrasOrDefault (chiave stringa, EntryValue defaultValue)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; public EntryValue getExtrasOrThrow (chiave String)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; getIter lunghi pubblici ()
If a benchmark, how many iterations it was run for
int64 iters = 2; public MetricEntry getMetrics (indice 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; 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; Elenco pubblico< 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 (indice 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; Elenco pubblico<? estende 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; stringa pubblica getName ()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1; pubblico com.google.protobuf.ByteString getNameBytes ()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1; pubblico getParserForType ()
public int getSerializedSize ()
pubblico doppio getThroughput ()
Throughput (in MB/s)
double throughput = 5; pubblico finale com.google.protobuf.UnknownFieldSet getUnknownFields ()
pubblico doppio getWallTime ()
Total wall time used for all iterations (in seconds)
double wall_time = 4; public int hashCode ()
public final booleano isInitialized ()
public static BenchmarkEntry parseDelimitedFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
| IOException |
|---|
public static BenchmarkEntry parseFrom (input com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
| IOException |
|---|
public static BenchmarkEntry parseFrom (dati ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
| InvalidProtocolBufferException |
|---|
parseFrom pubblico statico BenchmarkEntry (input com.google.protobuf.CodedInputStream)
Lancia
| IOException |
|---|
public static BenchmarkEntry parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
| InvalidProtocolBufferException |
|---|
parseFrom pubblico statico BenchmarkEntry (dati com.google.protobuf.ByteString)
Lancia
| InvalidProtocolBufferException |
|---|
public static BenchmarkEntry parseFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
| IOException |
|---|
BenchmarkEntry pubblico statico parseFrom (dati com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
| InvalidProtocolBufferException |
|---|
pubblico statico analizzatore ()
public void writeTo (output com.google.protobuf.CodedOutputStream)
Lancia
| IOException |
|---|