2using System.Collections.Generic;
58 m_log.
CHECK_EQ(colBottom[0].count(), colBottom[1].count(),
"The bottom(0) and bottom(1) must have the same count!");
59 m_cuda.copy(colBottom[0].count(), colBottom[0].gpu_data, colBottom[1].mutable_gpu_data);
72 m_log.
CHECK_EQ(colBottom[0].count(), colBottom[1].count(),
"The bottom(0) and bottom(1) must have the same count!");
73 m_cuda.copy(colBottom[1].count(), colBottom[1].gpu_diff, colBottom[0].mutable_gpu_diff);
The Log class provides general output in text form.
void CHECK_EQ(double df1, double df2, string str)
Test whether one number is equal to another.
The BlobCollection contains a list of Blobs.
The CudaDnn object is the main interface to the Low-Level Cuda C++ DLL.
The CopyLayer copies the src bottom to the dst bottom. The layer has no output.
override void Reshape(BlobCollection< T > colBottom, BlobCollection< T > colTop)
Not implemented - no reshape needed.
override int ExactNumTopBlobs
Returns 0 as this layer has no output.
override void LayerSetUp(BlobCollection< T > colBottom, BlobCollection< T > colTop)
Not implemented - no setup needed.
override int ExactNumBottomBlobs
Returns the minimum number of required bottom (input) Blobs: input.
override void forward(BlobCollection< T > colBottom, BlobCollection< T > colTop)
Not implemented - no output.
override void backward(BlobCollection< T > colTop, List< bool > rgbPropagateDown, BlobCollection< T > colBottom)
The backward computation merely sets the bottom diff to zero.
CopyLayer(CudaDnn< T > cuda, Log log, LayerParameter p)
The CopyLayer constructor.
An interface for the units of computation which can be composed into a Net.
Log m_log
Specifies the Log for output.
CudaDnn< T > m_cuda
Specifies the CudaDnn connection to Cuda.
LayerParameter.LayerType m_type
Specifies the Layer type.
Specifies the base parameter for all layers.
LayerType
Specifies the layer type.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.common namespace contains common MyCaffe classes.
The MyCaffe.layers namespace contains all layers that have a solidified code base,...
The MyCaffe.param namespace contains parameters used to create models.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...