Template Class StructuralMutateEngine#

Inheritance Relationships#

Base Type#

  • public Parent

Class Documentation#

template<typename Parent, typename ...Callbacks>
class StructuralMutateEngine : public Parent#

Engine of the callback-dispatched tvm::ffi::StructuralMutate.

A matched callback owns mutation of its value, so the engine returns the callback result without descending into it. An unmatched value keeps the Parent’s default mutation. Parent::MutatorObjType pins the exact callback-facing mutator view across layer composition.

Template Parameters:
  • Parent – Mutator layer extended by the engine.

  • Callbacks – Callable types whose first parameter selects the value type.

Public Functions

inline explicit StructuralMutateEngine(Callbacks... callbacks)#

Construct a mutate engine over callbacks tested in declaration order.