2using System.Collections.Generic;
50 long hBottomData = colBottom[0].gpu_data;
51 long hTopData = colTop[0].mutable_gpu_data;
52 int nCount = colBottom[0].count();
54 m_cuda.lecun_fwd(nCount, hBottomData, hTopData);
75 long hTopData = colTop[0].gpu_data;
76 long hTopDiff = colTop[0].gpu_diff;
77 long hBottomDiff = colBottom[0].mutable_gpu_diff;
78 long hBottomData = colBottom[0].gpu_data;
79 int nCount = colBottom[0].count();
81 m_cuda.lecun_bwd(nCount, hTopDiff, hTopData, hBottomDiff, hBottomData);
The Log class provides general output in text form.
The BlobCollection contains a list of Blobs.
The CudaDnn object is the main interface to the Low-Level Cuda C++ DLL.
CudaDnn< T > m_cuda
Specifies the CudaDnn connection to Cuda.
LayerParameter.LayerType m_type
Specifies the Layer type.
The NeuronLayer is an interface for layers that take one blob as input (x) and produce only equally-s...
The LeCunLayer performs the LeCun's Tanh function
override void backward(BlobCollection< T > colTop, List< bool > rgbPropagateDown, BlobCollection< T > colBottom)
Computes the error gradient w.r.t. the LeCun value inputs.
LeCunLayer(CudaDnn< T > cuda, Log log, LayerParameter p)
The LeCunLayer constructor.
override void forward(BlobCollection< T > colBottom, BlobCollection< T > colTop)
Forward computation
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.lnn namespace contains all Liquid Neural Network (LNN) related layers.
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-...