publiczna statyczna klasa końcowa BenchmarkEntry.Builder
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 typu
tensorflow.BenchmarkEntry
Metody publiczne
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
MetricEntry.Builder | addMetricsBuilder (indeks int) Metric name, value and expected range. |
MetricEntry.Builder | addMetricsBuilder () Metric name, value and expected range. |
BenchmarkEntry.Builder | addRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu) |
Wpis do testu porównawczego | zbudować () |
Wpis do testu porównawczego | |
BenchmarkEntry.Builder | jasne () |
BenchmarkEntry.Builder | wyczyśćCpuTime () Total cpu time used for all iterations (in seconds) double cpu_time = 3; |
BenchmarkEntry.Builder | jasneDodatki () |
BenchmarkEntry.Builder | clearField (pole com.google.protobuf.Descriptors.FieldDescriptor) |
BenchmarkEntry.Builder | jasneIters () If a benchmark, how many iterations it was run for int64 iters = 2; |
BenchmarkEntry.Builder | jasneMetryki () Metric name, value and expected range. |
BenchmarkEntry.Builder | wyczyść nazwę () The name of the specific benchmark or test (e.g. |
BenchmarkEntry.Builder | clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BenchmarkEntry.Builder | wyczyśćPrzepustowość () Throughput (in MB/s) double throughput = 5; |
BenchmarkEntry.Builder | clearWallTime () Total wall time used for all iterations (in seconds) double wall_time = 4; |
BenchmarkEntry.Builder | klon () |
wartość logiczna | zawieraDodatki (klawisz ciągu) Generic map from result key to value. |
podwójnie | pobierzCpuTime () Total cpu time used for all iterations (in seconds) double cpu_time = 3; |
Wpis do testu porównawczego | |
końcowy statyczny com.google.protobuf.Descriptors.Descriptor | |
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 > | getExtrasMap () 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. |
MetricEntry.Builder | getMetricsBuilder (indeks int) Metric name, value and expected range. |
Lista< MetricEntry.Builder > | getMetricsBuilderList () 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. |
Mapa<String, EntryValue > | getMutableExtras () Zamiast tego użyj alternatywnych akcesorów mutacji. |
Strunowy | 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. |
podwójnie | uzyskaj przepustowość () Throughput (in MB/s) double throughput = 5; |
podwójnie | getWallTime () Total wall time used for all iterations (in seconds) double wall_time = 4; |
końcowa wartość logiczna | |
BenchmarkEntry.Builder | mergeFrom (com.google.protobuf.Wiadomość inna) |
BenchmarkEntry.Builder | mergeFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
końcowy BenchmarkEntry.Builder | mergeUnknownFields (com.google.protobuf.UnknownFieldUstaw nieznane pola) |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | usuńDodatki (klawisz ciąg) Generic map from result key to value. |
BenchmarkEntry.Builder | usuńMetryki (indeks int) Metric name, value and expected range. |
BenchmarkEntry.Builder | setCpuTime (podwójna wartość) Total cpu time used for all iterations (in seconds) double cpu_time = 3; |
BenchmarkEntry.Builder | setField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu) |
BenchmarkEntry.Builder | setIters (długa wartość) If a benchmark, how many iterations it was run for int64 iters = 2; |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | |
BenchmarkEntry.Builder | setName (wartość ciągu) The name of the specific benchmark or test (e.g. |
BenchmarkEntry.Builder | setNameBytes (wartość com.google.protobuf.ByteString) The name of the specific benchmark or test (e.g. |
BenchmarkEntry.Builder | setRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, indeks int, wartość obiektu) |
BenchmarkEntry.Builder | setThroughput (podwójna wartość) Throughput (in MB/s) double throughput = 5; |
końcowy BenchmarkEntry.Builder | setUnknownFields (com.google.protobuf.UnknownFieldUstaw nieznane pola) |
BenchmarkEntry.Builder | setWallTime (podwójna wartość) Total wall time used for all iterations (in seconds) double wall_time = 4; |
Metody dziedziczone
Metody publiczne
public BenchmarkEntry.Builder addAllMetrics (Iterable<? rozszerza MetricEntry > wartości)
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 BenchmarkEntry.Builder addMetrics (indeks int, MetricEntry.Builder builderForValue)
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 BenchmarkEntry.Builder addMetrics (indeks int, wartość MetricEntry )
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 BenchmarkEntry.Builder addMetrics (wartość MetricEntry )
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 BenchmarkEntry.Builder addMetrics ( MetricEntry.Builder builderForValue)
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 MetricEntry.Builder addMetricsBuilder (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;
public MetricEntry.Builder addMetricsBuilder ()
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 BenchmarkEntry.Builder addRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)
publiczny BenchmarkEntry.Builder clearCpuTime ()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;
public BenchmarkEntry.Builder clearIters ()
If a benchmark, how many iterations it was run for
int64 iters = 2;
publiczny BenchmarkEntry.Builder clearMetrics ()
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 BenchmarkEntry.Builder clearName ()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;
publiczny BenchmarkEntry.Builder clearWallTime ()
Total wall time used for all iterations (in seconds)
double wall_time = 4;
publiczna wartość logiczna zawieraDodatki (klucz ciąg)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
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 ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
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;
publiczny 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;
public MetricEntry.Builder getMetricsBuilder (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;
public List< MetricEntry.Builder > getMetricsBuilderList ()
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 Map<String, EntryValue > getMutableExtras ()
Zamiast tego użyj alternatywnych akcesorów mutacji.
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 podwójny getThroughput ()
Throughput (in MB/s)
double throughput = 5;
publiczny podwójny getWallTime ()
Total wall time used for all iterations (in seconds)
double wall_time = 4;
publiczna końcowa wartość logiczna isInitialized ()
public BenchmarkEntry.Builder mergeFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)
Rzuca
Wyjątek IO |
---|
publiczny końcowy BenchmarkEntry.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)
public BenchmarkEntry.Builder putAllExtras (Map<String, EntryValue > wartości)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public BenchmarkEntry.Builder putExtras (klucz ciągu, wartość EntryValue )
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public BenchmarkEntry.Builder usuńExtras (klucz ciąg)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public BenchmarkEntry.Builder usuńMetrics (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;
public BenchmarkEntry.Builder setCpuTime (podwójna wartość)
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;
public BenchmarkEntry.Builder setField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)
public BenchmarkEntry.Builder setIters (długa wartość)
If a benchmark, how many iterations it was run for
int64 iters = 2;
public BenchmarkEntry.Builder setMetrics (indeks int, MetricEntry.Builder builderForValue)
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 BenchmarkEntry.Builder setMetrics (indeks int, wartość MetricEntry )
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 BenchmarkEntry.Builder setName (wartość ciągu)
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;
public BenchmarkEntry.Builder setNameBytes (wartość com.google.protobuf.ByteString)
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;
public BenchmarkEntry.Builder setRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, indeks int, wartość obiektu)
public BenchmarkEntry.Builder setThroughput (podwójna wartość)
Throughput (in MB/s)
double throughput = 5;
publiczny końcowy BenchmarkEntry.Builder setUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)
public BenchmarkEntry.Builder setWallTime (podwójna wartość)
Total wall time used for all iterations (in seconds)
double wall_time = 4;