Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
caffe2::GLContext Class Referencefinal

Public Types

template<typename T >
using deleted_unique_ptr = std::unique_ptr< T, std::function< void(T *)>>
 

Public Member Functions

 GLContext (const DeviceOption &option)
 
template<class SrcContext , class DstContext >
void CopyBytes (size_t nbytes, const void *src, void *dst)
 
template<typename T , class SrcContext , class DstContext >
void Copy (int n, const T *src, T *dst)
 
template<class SrcContext , class DstContext >
void CopyItems (const TypeMeta &meta, size_t n, const void *src, void *dst)
 
void SwitchToDevice (int a,...)
 
void SwitchToDevice ()
 
void WaitEvent (const Event &ev)
 
void FinishDeviceComputation ()
 
void Record (Event *ev, const char *&) const
 
bool HasAsyncPartDefault () const
 
bool SupportsAsyncScheduling () const
 

Static Public Member Functions

static void sync ()
 
template<typename T >
static deleted_unique_ptr< const GLTensor< T > > getGLTensor (const Blob *b)
 
static std::pair< void *, MemoryDeleter > New (size_t nbytes)
 
static void Delete (void *data)
 
static bool IsStreamFree (const DeviceOption &, int)
 

Static Public Attributes

static bool initialized = false
 

Detailed Description

Definition at line 36 of file context.h.


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