2using System.Collections.Generic;
25 List<int> m_rgCopyAxes =
new List<int>();
87 m_log.
CHECK_EQ(colTop[0].count(), colBottom[0].count(),
"output count must match input count");
89 colTop[0].ShareData(colBottom[0]);
90 colTop[0].ShareDiff(colBottom[0]);
The Log class provides general output in text form.
void CHECK(bool b, string str)
Test a flag for true.
void CHECK_EQ(double df1, double df2, string str)
Test whether one number is equal to another.
The BlobCollection contains a list of Blobs.
void Reshape(int[] rgShape)
Reshapes all blobs in the collection to the given shape.
The CudaDnn object is the main interface to the Low-Level Cuda C++ DLL.
An interface for the units of computation which can be composed into a Net.
Log m_log
Specifies the Log for output.
LayerParameter m_param
Specifies the LayerParameter describing the Layer.
LayerParameter.LayerType type
Returns the LayerType of this Layer.
LayerParameter.LayerType m_type
Specifies the Layer type.
The ReshapeLayer reshapes the input Blob into an arbitrary-sized output Blob. This layer is initializ...
override void forward(BlobCollection< T > colBottom, BlobCollection< T > colTop)
Not implemented - reshape Layers do not perform forward, reshaping is performed in Reshape().
override void Reshape(BlobCollection< T > colBottom, BlobCollection< T > colTop)
Reshape the bottom (input) and top (output) blobs.
override int ExactNumTopBlobs
Returns the exact number of required top (output) Blobs: reshape
override void LayerSetUp(BlobCollection< T > colBottom, BlobCollection< T > colTop)
Setup the layer.
override int ExactNumBottomBlobs
Returns the exact number of required bottom (input) Blobs: input
ReshapeLayer(CudaDnn< T > cuda, Log log, LayerParameter p)
Constructor.
override void backward(BlobCollection< T > colTop, List< bool > rgbPropagateDown, BlobCollection< T > colBottom)
Not implemented - reshape Layers do not perform backward.
Specifies the base parameter for all layers.
LayerType
Specifies the layer type.
override string ToString()
Returns a string representation of the LayerParameter.
Specifies the parameters for the ReshapeLayer.
static List< int > CalculateCopyAxes(LayerParameter p, out int nInferredAxis, out int nConstantCount, Log log=null)
Calculate the Copy Axes, inferred axis and constant count.
static List< int > Reshape(LayerParameter p, List< int > rgShape, List< int > rgCopyAxes, int nInferredAxis, int nConstantCount, Log log=null)
Calculates the new shape.
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-...