BenchmarkResult

public abstract class BenchmarkResult extends Object

Data class that contains BenchmarkResult.

Nested Class Summary

class BenchmarkResult.BenchmarkMetric Accuracy metrics. 
class BenchmarkResult.InferenceOutput Model output of one tensor. 

Public Method Summary

abstract List<BenchmarkResult.InferenceOutput>
actualOutput()
Returns model output of running with this config.
abstract boolean
hasPassedAccuracyCheck()
Returns whether accuracy validation check has passed.
abstract List<Long>
inferenceTimeMicros()
Returns inference time of each sample input, in microseconds.
abstract List<Long>
initializationTimeMicros()
Returns initialization time of each sample input, in microseconds.
abstract int
maxMemoryKb()
Returns max memory used of all sample inputs, in kilobytes.
abstract List<BenchmarkResult.BenchmarkMetric>
metrics()
Returns the list of accuracy metrics.

Inherited Method Summary

Public Methods

public abstract List<BenchmarkResult.InferenceOutput> actualOutput ()

Returns model output of running with this config. Each BenchmarkResult.InferenceOutput maps to one output tensor.

public abstract boolean hasPassedAccuracyCheck ()

Returns whether accuracy validation check has passed.

public abstract List<Long> inferenceTimeMicros ()

Returns inference time of each sample input, in microseconds.

public abstract List<Long> initializationTimeMicros ()

Returns initialization time of each sample input, in microseconds.

public abstract int maxMemoryKb ()

Returns max memory used of all sample inputs, in kilobytes.

public abstract List<BenchmarkResult.BenchmarkMetric> metrics ()

Returns the list of accuracy metrics.