[][src]Struct tensorflow_proto::tensorflow::TestResults

pub struct TestResults {
    pub target: String,
    pub entries: Option<BenchmarkEntries>,
    pub build_configuration: Option<BuildConfiguration>,
    pub commit_id: Option<CommitId>,
    pub start_time: i64,
    pub run_time: f64,
    pub machine_configuration: Option<MachineConfiguration>,
    pub run_configuration: Option<RunConfiguration>,
    pub name: String,
    pub benchmark_type: i32,
    pub run_mode: String,
    pub tf_version: String,
}

The output of one benchmark / test run. Each run contains a list of tests or benchmarks, stored as BenchmarkEntry messages.

This message should be emitted by the reporter (which runs the test / BM in a subprocess and then reads the emitted BenchmarkEntry messages; usually from a serialized json file, finally collecting them along with additional information about the test run.

Fields

target: String

The target of the run, e.g.: //tensorflow/core:kernels_adjust_contrast_op_benchmark_test

entries: Option<BenchmarkEntries>

The list of tests or benchmarks in this run.

build_configuration: Option<BuildConfiguration>

The configuration of the build (compiled opt? with cuda? any copts?)

commit_id: Option<CommitId>

The commit id (git hash or changelist)

start_time: i64

The time the run started (in seconds of UTC time since Unix epoch)

run_time: f64

The amount of time the total run took (wall time in seconds)

machine_configuration: Option<MachineConfiguration>

Machine-specific parameters (Platform and CPU info)

run_configuration: Option<RunConfiguration>

Run-specific parameters (arguments, etc)

name: String

Benchmark target identifier.

benchmark_type: i32run_mode: String

Used for differentiating between continuous and debug builds. Must be one of:

  • cbuild: results from continuous build.
  • presubmit: results from oneshot requests.
  • culprit: results from culprit finder rerun.
tf_version: String

TensorFlow version this benchmark runs against. This can be either set to full version or just the major version.

Implementations

impl TestResults[src]

pub fn benchmark_type(&self) -> BenchmarkType[src]

Returns the enum value of benchmark_type, or the default if the field is set to an invalid enum value.

pub fn set_benchmark_type(&mut self, value: BenchmarkType)[src]

Sets benchmark_type to the provided enum value.

Trait Implementations

impl Clone for TestResults[src]

impl Debug for TestResults[src]

impl Default for TestResults[src]

impl Message for TestResults[src]

impl PartialEq<TestResults> for TestResults[src]

impl StructuralPartialEq for TestResults[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.