|
FreeTensor
|
#include <memoized_schedules.h>
Public Member Functions | |
| ScheduleLog | lookupOrCreate (const ScheduleLog &log) |
Storage of all tried scheduling decisions for all Schedules forked from a common one
When we are searching for best scheduling decisions, we often try similar ones, for example Original -> Schedule A -> Schedule B and Original -> Schedule A -> Schedule C. Looking up from this class saves time for applying identical decisions
This class is thread-safe
This class is not named cache or storage, to avoid confusion with hardware features
|
inline |
Lookup for a particular schedule
If there is a memoized result, return the memoized one to save memory (so the shared linked lists form a tree). If not found, save and return the new log