BenchmarkEntry de clase final pública
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 Clases anidadas
| clase | BenchmarkEntry.Builder | Each unit test or benchmark in a test or benchmark run provides some set of information. | |
Constantes
| entero | CPU_TIME_FIELD_NUMBER | |
| entero | EXTRAS_FIELD_NUMBER | |
| entero | ITERS_FIELD_NUMBER | |
| entero | METRICS_FIELD_NUMBER | |
| entero | NOMBRE_CAMPO_NÚMERO | |
| entero | THROUGHPUT_FIELD_NUMBER | |
| entero | WALL_TIME_FIELD_NUMBER |
Métodos públicos
| booleano | contieneExtras (clave de cadena) Generic map from result key to value. |
| booleano | es igual (Objeto obj) |
| doble | obtenerTiempoCpu () Total cpu time used for all iterations (in seconds) double cpu_time = 3; |
| Entrada de referencia estática | |
| Entrada de referencia | |
| com.google.protobuf.Descriptors.Descriptor estático final | |
| Mapa<Cadena, Valor de entrada > | obtenerExtras () Utilice getExtrasMap() en su lugar. |
| entero | obtenerConteoExtras () Generic map from result key to value. |
| Mapa<Cadena, Valor de entrada > | obtenerMapaExtras () Generic map from result key to value. |
| Valor de entrada | getExtrasOrDefault (clave de cadena, EntryValue valor predeterminado) Generic map from result key to value. |
| Valor de entrada | getExtrasOrThrow (clave de cadena) Generic map from result key to value. |
| largo | getIters () If a benchmark, how many iterations it was run for int64 iters = 2; |
| Entrada de métrica | getMetrics (índice int) Metric name, value and expected range. |
| entero | getMetricsCount () Metric name, value and expected range. |
| Lista< Entrada de métrica > | getLista de métricas () Metric name, value and expected range. |
| MétricaEntradaOrBuilder | getMetricsOrBuilder (índice int) Metric name, value and expected range. |
| Lista<? extiende MetricEntryOrBuilder > | getMetricsOrBuilderList () Metric name, value and expected range. |
| Cadena | obtenerNombre () The name of the specific benchmark or test (e.g. |
| com.google.protobuf.ByteString | getNombreBytes () The name of the specific benchmark or test (e.g. |
| entero | |
| doble | obtener rendimiento () Throughput (in MB/s) double throughput = 5; |
| com.google.protobuf.UnknownFieldSet final | |
| doble | obtenerWallTime () Total wall time used for all iterations (in seconds) double wall_time = 4; |
| entero | código hash () |
| booleano final | |
| BenchmarkEntry.Builder estático | |
| BenchmarkEntry.Builder estático | newBuilder (prototipo de BenchmarkEntry ) |
| BenchmarkEntry.Builder | |
| Entrada de referencia estática | parseDelimitedFrom (entrada de InputStream) |
| Entrada de referencia estática | parseDelimitedFrom (entrada de InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| Entrada de referencia estática | parseFrom (datos de ByteBuffer) |
| Entrada de referencia estática | parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensiónRegistry) |
| Entrada de referencia estática | parseFrom (datos de ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| Entrada de referencia estática | parseFrom (entrada com.google.protobuf.CodedInputStream) |
| Entrada de referencia estática | parseFrom (byte[] datos, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| Entrada de referencia estática | parseFrom (datos com.google.protobuf.ByteString) |
| Entrada de referencia estática | parseFrom (entrada de InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| Entrada de referencia estática | parseFrom (com.google.protobuf.ByteString datos, com.google.protobuf.ExtensionRegistryLite extensiónRegistry) |
| estático | analizador () |
| BenchmarkEntry.Builder | |
| vacío | writeTo (salida de com.google.protobuf.CodedOutputStream) |
Métodos heredados
Constantes
int final estático público CPU_TIME_FIELD_NUMBER
Valor constante: 3
int final estático público EXTRAS_FIELD_NUMBER
Valor constante: 6
int final estático público ITERS_FIELD_NUMBER
Valor constante: 2
int final estático público METRICS_FIELD_NUMBER
Valor constante: 7
público estático final int NAME_FIELD_NUMBER
Valor constante: 1
int final estático público THROUGHPUT_FIELD_NUMBER
Valor constante: 5
int final estático público WALL_TIME_FIELD_NUMBER
Valor constante: 4
Métodos públicos
booleano público contieneExtras (clave de cadena)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; público booleano es igual (Objeto obj)
público doble getCpuTime ()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3; público estático final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
público int getExtrasCount ()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; Mapa público<Cadena, Valor de entrada > getExtrasMap ()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; público EntryValue getExtrasOrDefault (clave de cadena, EntryValue defaultValue)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; público EntryValue getExtrasOrThrow (clave de cadena)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6; getIters públicos largos ()
If a benchmark, how many iterations it was run for
int64 iters = 2; Métrica pública getMetrics (índice 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; público 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; Lista pública <EntradaMetric> 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; público MetricEntryOrBuilder getMetricsOrBuilder (índice 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 pública<? extiende 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; cadena pública getName ()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1; público com.google.protobuf.ByteString getNameBytes ()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1; público getParserForType ()
público int getSerializedSize ()
getThroughput doble público ()
Throughput (in MB/s)
double throughput = 5; público final com.google.protobuf.UnknownFieldSet getUnknownFields ()
público doble getWallTime ()
Total wall time used for all iterations (in seconds)
double wall_time = 4; código hash int público ()
público final booleano isInitialized ()
BenchmarkEntry estático público parseDelimitedFrom (entrada de InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
| IOExcepción |
|---|
BenchmarkEntry público estático parseFrom (datos ByteBuffer)
Lanza
| Excepción de buffer de protocolo no válido |
|---|
BenchmarkEntry público estático parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
| IOExcepción |
|---|
BenchmarkEntry público estático parseFrom (datos de ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
| Excepción de buffer de protocolo no válido |
|---|
BenchmarkEntry público estático parseFrom (entrada com.google.protobuf.CodedInputStream)
Lanza
| IOExcepción |
|---|
BenchmarkEntry público estático parseFrom (byte[] datos, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
| Excepción de buffer de protocolo no válido |
|---|
BenchmarkEntry público estático parseFrom (datos com.google.protobuf.ByteString)
Lanza
| Excepción de buffer de protocolo no válido |
|---|
BenchmarkEntry público estático parseFrom (entrada de InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
| IOExcepción |
|---|
BenchmarkEntry público estático parseFrom (datos com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
| Excepción de buffer de protocolo no válido |
|---|
estática pública analizador ()
escritura vacía pública (salida de com.google.protobuf.CodedOutputStream)
Lanza
| IOExcepción |
|---|