The abstract class for design space generation.
More...
#include <space_generator.h>
The abstract class for design space generation.
- Note
- The relationship between SpaceGenerator and other classes are as follows: ┌──────────────────────────────────────────────────────────────┐ ┌──┴───────────────────────────────────────────────────────────┐ │ ┌──┴────────────────── Tune Context ───────────────────────────┐ │ │ │ ┌─────────────────────┐ │ │ │ │ │ │ Generate │ │ │ │ │ Space Generator ├──────────────┐ │ │ │ │ │ │ │ │ │ │ │ └─────────────────────┘ ▼ │ │ │ │ Design Space │ │ │ │ ┌─────────────────────┐ │ │ │ │ │ Generate │ │ Pretuning │ │ │ │ │ ┌───────────┤ Search Strategy │◄─────────────┘ │ │ │ │ │ │ │ │ ├──┘ │ │ └─────────────────────┘ ├──┘ └────┼─────────────────────────────────────────────────────────┘ │ │ ┌────┼──────────────── Managed By Task Scheduler ─────────────────────┐ │ │ ┌───────────┐ │ │ │ Send to │ │ Send to │ │ ▼ ┌─────────────►│ Builder ├──────────┐ │ │ Measure Candidate │ Builder │ │ Runner │ │ │ │ │ └───────────┘ │ │ │ │ ┌────────────┴────────┐ │ │ │ │ │ │ ┌───────────┐ │ │ │ └────►│ Task Scheduler │ │ │ │ │ │ │ │ │ Runner │◄─────────┘ │ │ └─────────────────────┘ │ │ │ │ ▲ └─────┬─────┘ │ │ │ │ │ │ └─── Runner Future ◄────┘ │ └─────────────────────────────────────────────────────────────────────┘
◆ ~SpaceGeneratorNode()
virtual tvm::meta_schedule::SpaceGeneratorNode::~SpaceGeneratorNode |
( |
| ) |
|
|
virtualdefault |
◆ GenerateDesignSpace()
Generate design spaces given a module.
- Parameters
-
mod | The module used for design space generation. |
- Returns
- The generated design spaces, i.e., schedules.
Implemented in tvm::meta_schedule::PySpaceGeneratorNode.
◆ InitializeWithTuneContext()
virtual void tvm::meta_schedule::SpaceGeneratorNode::InitializeWithTuneContext |
( |
const TuneContext & |
context | ) |
|
|
pure virtual |
Initialize the design space generator with tuning context.
- Parameters
-
context | The tuning context for initialization. |
- Note
- This method is supposed to be called only once before every other method.
Implemented in tvm::meta_schedule::PySpaceGeneratorNode.
◆ TVM_DECLARE_BASE_OBJECT_INFO()
◆ _type_key
constexpr const char* tvm::meta_schedule::SpaceGeneratorNode::_type_key = "meta_schedule.SpaceGenerator" |
|
static |
The documentation for this class was generated from the following file: