TVM  0.9.4
tvm::utils::CheckOptions Class Reference

#include <tvm/utils/checkFunction.h>

Classes

struct  CheckConfiguration
 

Public Member Functions

 CheckOptions ()
 
 CheckOptions (double s, double p, bool v)
 

Public Attributes

double step
 
double prec
 
bool verbose
 
size_t samples = 0
 
std::vector< CheckConfigurationconfigs = {}
 

Detailed Description

A small structure to specify options for the checks in CheckGroup.

  • step is the increment that will be taken for finite difference schemes
  • prec is the precision with which the equality of two vectors is tested. It corresponds to the prec parameter of Eigen's isApprox method.
  • if verbose is true, the functions will display some indications when a mismatch is detected.
  • if samples is > 0 then the check will generate samples random configurations, defaults to 1 if configs is empty, 0 otherwise
  • if configs are provided then these specific configurations are also tested, see CheckOptions::CheckConfiguration

The documentation for this class was generated from the following file: