classe finale publique 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 de type
tensorflow.BenchmarkEntry
Classes imbriquées
classe | BenchmarkEntry.Builder | Each unit test or benchmark in a test or benchmark run provides some set of information. |
Constantes
int | CPU_TIME_FIELD_NUMBER | |
int | EXTRAS_FIELD_NUMBER | |
int | ITERS_FIELD_NUMBER | |
int | METRICS_FIELD_NUMBER | |
int | NAME_FIELD_NUMBER | |
int | THROUGHPUT_FIELD_NUMBER | |
int | WALL_TIME_FIELD_NUMBER |
Méthodes publiques
booléen | contientExtras (clé de chaîne) Generic map from result key to value. |
booléen | est égal (Obj objet) |
double | obtenirCpuTime () Total cpu time used for all iterations (in seconds) double cpu_time = 3; |
entrée de référence statique | |
Entrée de référence | |
final statique com.google.protobuf.Descriptors.Descriptor | |
Carte<String, EntryValue > | obtenirExtras () Utilisez plutôt getExtrasMap() . |
int | getExtrasCount () Generic map from result key to value. |
Carte<String, EntryValue > | getExtrasMap () Generic map from result key to value. |
Valeur d'entrée | getExtrasOrDefault (clé de chaîne, EntryValue valeur par défaut) Generic map from result key to value. |
Valeur d'entrée | getExtrasOrThrow (clé de chaîne) Generic map from result key to value. |
long | getIters () If a benchmark, how many iterations it was run for int64 iters = 2; |
Entrée métrique | getMetrics (index entier) Metric name, value and expected range. |
int | getMetricsCount () Metric name, value and expected range. |
Liste< MetricEntry > | getMetricsList () Metric name, value and expected range. |
MetricEntryOrBuilder | getMetricsOrBuilder (index int) Metric name, value and expected range. |
Liste<? étend MetricEntryOrBuilder > | getMetricsOrBuilderList () Metric name, value and expected range. |
Chaîne | obtenirNom () 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. |
int | |
double | getThroughput () Throughput (in MB/s) double throughput = 5; |
final com.google.protobuf.UnknownFieldSet | |
double | getWallTime () Total wall time used for all iterations (in seconds) double wall_time = 4; |
int | |
booléen final | |
statique BenchmarkEntry.Builder | |
statique BenchmarkEntry.Builder | newBuilder (prototype BenchmarkEntry ) |
BenchmarkEntry.Builder | |
entrée de référence statique | parseDelimitedFrom (entrée InputStream) |
entrée de référence statique | parseDelimitedFrom (entrée InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
entrée de référence statique | parseFrom (données ByteBuffer) |
entrée de référence statique | parseFrom (entrée com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
entrée de référence statique | parseFrom (données ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
entrée de référence statique | parseFrom (entrée com.google.protobuf.CodedInputStream) |
entrée de référence statique | parseFrom (données octet[], com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
entrée de référence statique | parseFrom (données com.google.protobuf.ByteString) |
entrée de référence statique | parseFrom (entrée InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
entrée de référence statique | parseFrom (données com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statique | analyseur () |
BenchmarkEntry.Builder | toBuilder () |
vide | writeTo (sortie com.google.protobuf.CodedOutputStream) |
Méthodes héritées
Constantes
public statique final int CPU_TIME_FIELD_NUMBER
Valeur constante : 3
public statique final int EXTRAS_FIELD_NUMBER
Valeur constante : 6
public statique final entier ITERS_FIELD_NUMBER
Valeur constante : 2
public statique final int METRICS_FIELD_NUMBER
Valeur constante : 7
public statique final entier NAME_FIELD_NUMBER
Valeur constante : 1
public statique final int THROUGHPUT_FIELD_NUMBER
Valeur constante : 5
public statique final int WALL_TIME_FIELD_NUMBER
Valeur constante : 4
Méthodes publiques
public boolean containExtras (clé de chaîne)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public booléen égal (Objet obj)
public double getCpuTime ()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;
public statique final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public 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;
public EntryValue getExtrasOrDefault (clé de chaîne, EntryValue defaultValue)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
public EntryValue getExtrasOrThrow (clé de chaîne)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;
getIters publics longs ()
If a benchmark, how many iterations it was run for
int64 iters = 2;
public MetricEntry getMetrics (index 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;
liste publique < 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 (index 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;
Liste publique <? étend 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;
chaîne publique 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 ()
nom de chaîne
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;
publique getParserForType ()
public int getSerializedSize ()
public double getThroughput ()
Throughput (in MB/s)
double throughput = 5;
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public double getWallTime ()
Total wall time used for all iterations (in seconds)
double wall_time = 4;
code de hachage int public ()
public final booléen isInitialized ()
public statique BenchmarkEntry parseDelimitedFrom (entrée InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
IOException |
---|
public statique BenchmarkEntry parseFrom (entrée com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
IOException |
---|
public statique BenchmarkEntry parseFrom (données ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
InvalidProtocolBufferException |
---|
public statique BenchmarkEntry parseFrom (entrée com.google.protobuf.CodedInputStream)
Jetés
IOException |
---|
public statique BenchmarkEntry parseFrom (données octet[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
InvalidProtocolBufferException |
---|
public statique BenchmarkEntry parseFrom (données com.google.protobuf.ByteString)
Jetés
InvalidProtocolBufferException |
---|
public statique BenchmarkEntry parseFrom (entrée InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
IOException |
---|
public statique BenchmarkEntry parseFrom (données com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
InvalidProtocolBufferException |
---|
public statique analyseur ()
public void writeTo (sortie com.google.protobuf.CodedOutputStream)
Jetés
IOException |
---|