Class VarSanityCheck

Inheritance Relationships

Base Type

Class Documentation

class mgb::VarSanityCheck : public mgb::PluginBase

check that content of a variable does not change between when it is produced and when it is used

Public Types

using Error = VarSanityCheckError

Public Functions

VarSanityCheck(cg::ComputingGraph *graph)

Public Static Functions

void check_var_after_exec(VarNode *var, const ComputingGraph::VarReceiverInfo &recv)

perform basic sanity check after opr exec

This checks var ptr and empty shape. It should be called for non-statically allocated vars.