Class VarValueChecker

Nested Relationships

Inheritance Relationships

Base Type

Class Documentation

class mgb::VarValueChecker : public mgb::PluginBase

check values of all vars in a graph

This graph should be executed multiple times. On the first execution, all var values would be saved as ground truth. Then each time the graph is executed, the value of a single var would be checked. The var to be checked would start at init_var_idx, and changed to next var in topological order after every var_switch_interval graph executions.

Public Types

using Error = opr::AssertEqual::UnequalError

Public Functions

VarValueChecker(ComputingGraph *graph, size_t var_switch_interval = 1, size_t init_var_idx = 0)