BenchmarkEntry kelas akhir publik
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 tipe
tensorflow.BenchmarkEntry
Kelas Bersarang
kelas | BenchmarkEntry.Builder | Each unit test or benchmark in a test or benchmark run provides some set of information. |
Konstanta
ke dalam | CPU_TIME_FIELD_NUMBER | |
ke dalam | EXTRAS_FIELD_NUMBER | |
ke dalam | ITERS_FIELD_NUMBER | |
ke dalam | METRICS_FIELD_NUMBER | |
ke dalam | NAME_FIELD_NUMBER | |
ke dalam | THROUGHPUT_FIELD_NUMBER | |
ke dalam | WALL_TIME_FIELD_NUMBER |
Metode Publik
boolean | berisi Ekstra (kunci string) Generic map from result key to value. |
boolean | sama dengan (Objek objek) |
dobel | dapatkanCpuTime () Total cpu time used for all iterations (in seconds) double cpu_time = 3; |
Entri Benchmark statis | |
Entri Tolok Ukur | |
com.google.protobuf.Descriptors.Descriptor statis terakhir | |
Peta<String, Nilai Masuk > | dapatkan Ekstra () Gunakan getExtrasMap() sebagai gantinya. |
ke dalam | dapatkanExtrasCount () Generic map from result key to value. |
Peta<String, Nilai Masuk > | dapatkan ExtrasMap () Generic map from result key to value. |
Nilai Masuk | |
Nilai Masuk | getExtrasOrThrow (kunci string) Generic map from result key to value. |
panjang | dapatkanIters () If a benchmark, how many iterations it was run for int64 iters = 2; |
Entri Metrik | getMetrics (indeks int) Metric name, value and expected range. |
ke dalam | dapatkanMetricsCount () Metric name, value and expected range. |
Daftar< MetricEntry > | dapatkanDaftar Metrik () Metric name, value and expected range. |
MetricEntryOrBuilder | getMetricsOrBuilder (indeks int) Metric name, value and expected range. |
Daftar<? memperluas MetricEntryOrBuilder > | dapatkanMetricsOrBuilderList () Metric name, value and expected range. |
Rangkaian | dapatkan Nama () The name of the specific benchmark or test (e.g. |
com.google.protobuf.ByteString | dapatkanNamaBytes () The name of the specific benchmark or test (e.g. |
ke dalam | |
dobel | dapatkan Throughput () Throughput (in MB/s) double throughput = 5; |
final com.google.protobuf.UnknownFieldSet | |
dobel | dapatkanWaktu Dinding () Total wall time used for all iterations (in seconds) double wall_time = 4; |
ke dalam | Kode hash () |
boolean terakhir | |
BenchmarkEntry.Builder statis | |
BenchmarkEntry.Builder statis | newBuilder (prototipe BenchmarkEntry ) |
BenchmarkEntry.Builder | |
Entri Benchmark statis | parseDelimitedFrom (masukan Aliran Masukan) |
Entri Benchmark statis | parseDelimitedFrom (masukan InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Entri Benchmark statis | parseFrom (data ByteBuffer) |
Entri Benchmark statis | parseFrom (com.google.protobuf.CodedInputStream masukan, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Entri Benchmark statis | parseFrom (data ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Entri Benchmark statis | parseFrom (com.google.protobuf.CodedInputStream masukan) |
Entri Benchmark statis | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Entri Benchmark statis | parseFrom (com.google.protobuf.ByteString data) |
Entri Benchmark statis | parseFrom (masukan InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Entri Benchmark statis | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statis | pengurai () |
BenchmarkEntry.Builder | |
ruang kosong | writeTo (com.google.protobuf.CodedOutputStream keluaran) |
Metode Warisan
Konstanta
int akhir statis publik CPU_TIME_FIELD_NUMBER
Nilai Konstan: 3
int final statis publik EXTRAS_FIELD_NUMBER
Nilai Konstan: 6
int akhir statis publik ITERS_FIELD_NUMBER
Nilai Konstan: 2
int akhir statis publik METRICS_FIELD_NUMBER
Nilai Konstan: 7
int akhir statis publik NAME_FIELD_NUMBER
Nilai Konstan: 1
int akhir statis publik THROUGHPUT_FIELD_NUMBER
Nilai Konstan: 5
int final statis publik WALL_TIME_FIELD_NUMBER
Nilai Konstan: 4
Metode Publik
boolean publik berisi Ekstra (kunci string)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
boolean publik sama (Obj objek)
getCpuTime ganda publik ()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
int publik getExtrasCount ()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
Peta publik<String, EntryValue > getExtrasMap ()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
EntryValue publik getExtrasOrDefault (kunci string, EntryValue defaultValue)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
EntryValue publik getExtrasOrThrow (kunci string)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
publik long getIters ()
If a benchmark, how many iterations it was run for
int64 iters = 2;
getMetrics MetricEntry publik (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;
int publik 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;
Daftar publik< 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;
MetricEntryOrBuilder publik getMetricsOrBuilder (int indeks)
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;
Daftar Publik<? memperluas 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 String publik ()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;
publik com.google.protobuf.ByteString getNameBytes ()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;
publik dapatkanParserForType ()
publik int getSerializedSize ()
getThroughput ganda publik ()
Throughput (in MB/s)
double throughput = 5;
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
getWallTime ganda publik ()
Total wall time used for all iterations (in seconds)
double wall_time = 4;
kode hash int publik ()
boolean akhir publik diinisialisasi ()
BenchmarkEntry statis publik parseDelimitedFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
Pengecualian IO |
---|
parseFrom BenchmarkEntry statis publik (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
Pengecualian IO |
---|
BenchmarkEntry statis publik parseFrom (data ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
InvalidProtocolBufferException |
---|
parseFrom BenchmarkEntry statis publik (com.google.protobuf.CodedInputStream input)
Melempar
Pengecualian IO |
---|
BenchmarkEntry statis publik parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
InvalidProtocolBufferException |
---|
parseFrom BenchmarkEntry statis publik (com.google.protobuf.ByteString data)
Melempar
InvalidProtocolBufferException |
---|
parseFrom BenchmarkEntry statis publik (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
Pengecualian IO |
---|
ParseFrom BenchmarkEntry statis publik (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
InvalidProtocolBufferException |
---|
statis publik pengurai ()
public void writeTo (com.google.protobuf.CodedOutputStream keluaran)
Melempar
Pengecualian IO |
---|