MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.common.Cache< T > Class Template Reference

The Cache class is used to cache blobs over time. More...

Inheritance diagram for MyCaffe.common.Cache< T >:

Public Member Functions

 Cache (CudaDnn< T > cuda, Log log)
 The constructor. More...
 
void Dispose ()
 Release any resources used. More...
 
void Create (int nCount, List< int > rgItemShape)
 Create the cache memory. More...
 
void Reset ()
 Resets the cache. More...
 
void CopyToCache (Blob< T > b, int nAxis)
 Copies a blob to the current location in the cache. More...
 
void CopyFromCache (Blob< T > b, int nAxis)
 Copies a value from the current location in the cache to the blob. More...
 

Detailed Description

The Cache class is used to cache blobs over time.

Template Parameters
TSpecifies the base type.

Definition at line 708 of file ComputeGraph.cs.

Constructor & Destructor Documentation

◆ Cache()

MyCaffe.common.Cache< T >.Cache ( CudaDnn< T >  cuda,
Log  log 
)

The constructor.

Parameters
cudaSpecifies the connection to Cuda.
logSpecifies the log for output.

Definition at line 719 of file ComputeGraph.cs.

Member Function Documentation

◆ CopyFromCache()

void MyCaffe.common.Cache< T >.CopyFromCache ( Blob< T >  b,
int  nAxis 
)

Copies a value from the current location in the cache to the blob.

Parameters
bSpecifies the blob where the data is copied.
nAxisSpecifies the axis where all data to the right is copied.

Definition at line 780 of file ComputeGraph.cs.

◆ CopyToCache()

void MyCaffe.common.Cache< T >.CopyToCache ( Blob< T >  b,
int  nAxis 
)

Copies a blob to the current location in the cache.

Parameters
bSpecifies the blob to copy.
nAxisSpecifies the axis where all data to the right is copied.

Definition at line 764 of file ComputeGraph.cs.

◆ Create()

void MyCaffe.common.Cache< T >.Create ( int  nCount,
List< int >  rgItemShape 
)

Create the cache memory.

Parameters
nCountSpecifies the number of items in the cache.
rgItemShapeSpecifies the shape of each item within the cache.

Definition at line 743 of file ComputeGraph.cs.

◆ Dispose()

void MyCaffe.common.Cache< T >.Dispose ( )

Release any resources used.

Definition at line 729 of file ComputeGraph.cs.

◆ Reset()

void MyCaffe.common.Cache< T >.Reset ( )

Resets the cache.

Definition at line 753 of file ComputeGraph.cs.


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