Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tc::Cache< CC > Class Template Reference

#include <compilation_cache.h>

Public Member Functions

size_t size () const
 
void clear ()
 

Static Public Member Functions

static void enableCache ()
 
static void disableCache ()
 
static void dumpCacheToProtobuf (const std::string &filename)
 
static void loadCacheFromProtobuf (const std::string &filename)
 
template<typename Protobuf >
static void loadCacheFromProtobuf (const Protobuf &buf)
 
static std::shared_ptr< CC > getCache ()
 
static bool cacheEnabled ()
 

Public Attributes

int numberAttemptedRetrievals = 0
 
int numberSuccessfulRetrievals = 0
 
int numberCacheAttemps = 0
 

Protected Attributes

std::mutex mtx_
 

Member Function Documentation

template<typename CC >
bool tc::Cache< CC >::cacheEnabled ( )
static
template<typename CC >
void tc::Cache< CC >::clear ( )
template<typename CC >
void tc::Cache< CC >::disableCache ( )
static
template<typename CC >
void tc::Cache< CC >::dumpCacheToProtobuf ( const std::string &  filename)
static
template<typename CC >
void tc::Cache< CC >::enableCache ( )
static
template<typename CC >
std::shared_ptr< CC > tc::Cache< CC >::getCache ( )
static
template<typename CC >
void tc::Cache< CC >::loadCacheFromProtobuf ( const std::string &  filename)
static
template<typename CC >
template<typename Protobuf >
void tc::Cache< CC >::loadCacheFromProtobuf ( const Protobuf &  buf)
static
template<typename CC >
size_t tc::Cache< CC >::size ( ) const

Member Data Documentation

template<typename CC>
std::mutex tc::Cache< CC >::mtx_
mutableprotected
template<typename CC>
int tc::Cache< CC >::numberAttemptedRetrievals = 0
mutable
template<typename CC>
int tc::Cache< CC >::numberCacheAttemps = 0
mutable
template<typename CC>
int tc::Cache< CC >::numberSuccessfulRetrievals = 0
mutable

The documentation for this class was generated from the following files: