BackendVerification class

Outcome of checking a CompiledModel against a bare-CPU Interpreter.

agrees is the only field most callers need. The numbers are exposed so a caller can log how far off a rejected backend was, which is the difference between "wrong by 40% of the output range" and "wrong in the last decimal".

Constructors

BackendVerification({required bool agrees, required double absoluteDeviation, required double outputRange, required double relativeDeviation, String? skippedReason, Object? error})
const

Properties

absoluteDeviation double
Largest absolute difference between the two backends' outputs.
final
agrees bool
Whether CompiledModel matched the reference within the tolerance.
final
error Object?
The error CompiledModel threw, if it threw.
final
hashCode int
The hash code for this object.
no setterinherited
outputRange double
Spread (max minus min) of the reference output.
final
relativeDeviation double
absoluteDeviation as a fraction of outputRange.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipped bool
Whether verification could not be performed at all.
no setter
skippedReason String?
Why verification could not run, or null if it ran.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited