#include <compilation_cache.h>
 | 
|   | OptionsCache ()=default | 
|   | 
|   | OptionsCache (const OptionsCacheProto &buf) | 
|   | 
| decltype(entries_)::const_iterator  | begin () const  | 
|   | 
| decltype(entries_)::const_iterator  | end () const  | 
|   | 
| OptionsCacheProto  | toProtobuf () const  | 
|   | 
| size_t  | totalSize () const  | 
|   | 
| void  | recordRuntime (const std::string &id, const MappingOptions &options, const std::vector< const DLTensor * > &inputs, const std::vector< const DLTensor * > &outputs, Duration runtime) | 
|   | 
| std::vector< RetrievalResult >  | retrieveOptionsAndRuntimes (const std::string &id, const std::vector< const DLTensor * > &inputs, const std::vector< const DLTensor * > &outputs) const  | 
|   | 
| std::unique_ptr< MappingOptions >  | retrieveBestOptions (const std::string &id, const std::vector< const DLTensor * > &inputs, const std::vector< const DLTensor * > &outputs) const  | 
|   | 
| std::vector< MappingOptions >  | retrieveTopKOptions (const std::string &id, const std::vector< const DLTensor * > &inputs, const std::vector< const DLTensor * > &outputs, size_t k) const  | 
|   | 
| void  | keepOnlyBestCandidates (size_t numberToKeep) | 
|   | 
| size_t  | size () const | 
|   | 
| void  | clear () | 
|   | 
 | 
| CachedEntry *  | searchKernel (const std::string &id, const std::vector< const DLTensor * > &inputs, const std::vector< const DLTensor * > &outputs) | 
|   | 
| const CachedEntry *  | searchKernel (const std::string &id, const std::vector< const DLTensor * > &input, const std::vector< const DLTensor * > &outputs) const  | 
|   | 
 | 
static std::shared_ptr 
< OptionsCache > &  | getGlobalSharedCache () | 
|   | 
| template<typename C >  | 
| static auto  | searchKernelImpl (C &c, const std::string &id, const std::vector< const DLTensor * > &inputs, const std::vector< const DLTensor * > &outputs) -> decltype(c.searchKernel(id, inputs, outputs)) | 
|   | 
  
  
      
        
          | tc::OptionsCache::OptionsCache  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
      
        
          | tc::OptionsCache::OptionsCache  | 
          ( | 
          const OptionsCacheProto &  | 
          buf | ) | 
           | 
        
      
 
 
      
        
          | decltype(entries_) ::const_iterator tc::OptionsCache::begin  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
      
        
          | decltype(entries_) ::const_iterator tc::OptionsCache::end  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
  
  
      
        
          | static std::shared_ptr<OptionsCache>& tc::OptionsCache::getGlobalSharedCache  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
staticprivate   | 
  
 
 
      
        
          | void tc::OptionsCache::keepOnlyBestCandidates  | 
          ( | 
          size_t  | 
          numberToKeep | ) | 
           | 
        
      
 
 
      
        
          | void tc::OptionsCache::recordRuntime  | 
          ( | 
          const std::string &  | 
          id,  | 
        
        
           | 
           | 
          const MappingOptions &  | 
          options,  | 
        
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          inputs,  | 
        
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          outputs,  | 
        
        
           | 
           | 
          Duration  | 
          runtime  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | std::unique_ptr<MappingOptions> tc::OptionsCache::retrieveBestOptions  | 
          ( | 
          const std::string &  | 
          id,  | 
        
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          inputs,  | 
        
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          outputs  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
 
      
        
          | std::vector<RetrievalResult> tc::OptionsCache::retrieveOptionsAndRuntimes  | 
          ( | 
          const std::string &  | 
          id,  | 
        
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          inputs,  | 
        
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          outputs  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
 
      
        
          | std::vector<MappingOptions> tc::OptionsCache::retrieveTopKOptions  | 
          ( | 
          const std::string &  | 
          id,  | 
        
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          inputs,  | 
        
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          outputs,  | 
        
        
           | 
           | 
          size_t  | 
          k  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
 
  
  
      
        
          | CachedEntry* tc::OptionsCache::searchKernel  | 
          ( | 
          const std::string &  | 
          id,  | 
         
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          inputs,  | 
         
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          outputs  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
SearchKernel (through SearchKernelImpl) searches op in the cache if a cached entry that corresponds to the op's configuration (MappingOptions and TargetDevice) and the shape of inputs matches it is returned 
 
 
  
  
      
        
          | const CachedEntry* tc::OptionsCache::searchKernel  | 
          ( | 
          const std::string &  | 
          id,  | 
         
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          input,  | 
         
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          outputs  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
private   | 
  
 
 
template<typename C > 
  
  
      
        
          | auto tc::OptionsCache::searchKernelImpl  | 
          ( | 
          C &  | 
          c,  | 
         
        
           | 
           | 
          const std::string &  | 
          id,  | 
         
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          inputs,  | 
         
        
           | 
           | 
          const std::vector< const DLTensor * > &  | 
          outputs  | 
         
        
           | 
          ) | 
           |  -> decltype(c.searchKernel(id, inputs, outputs)) | 
         
       
   | 
  
staticprivate   | 
  
 
 
      
        
          | OptionsCacheProto tc::OptionsCache::toProtobuf  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
      
        
          | size_t tc::OptionsCache::totalSize  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
The documentation for this class was generated from the following files: