2using System.Collections.Generic;
5using System.Threading.Tasks;
44 int nNumTop = colTop.
Count;
46 int nNumShape = p.
shape.Count();
49 m_log.
CHECK(nNumShape == 0 || nNumShape == 1 || nNumShape == nNumTop,
"Must specify 'shape' once, once per top blob, or not at all: " + nNumTop.ToString() +
" top vs. " + nNumShape.ToString() +
" shapes.");
53 for (
int i = 0; i < nNumTop; i++)
55 int nShapeIdx = (p.
shape.Count() == 1) ? 0 : i;
The Log class provides general output in text form.
void CHECK(bool b, string str)
Test a flag for true.
The BlobCollection contains a list of Blobs.
int Count
Returns the number of items in the collection.
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.
bool m_bUseHalfSize
Specifies that the half size of the top (if any) should be converted to the base size.
LayerParameter.LayerType m_type
Specifies the Layer type.
bool m_bConvertTopOnFwd
Specifies whether or not the layer should convert the top on the forward pass when using half sized m...
Specifies the base parameter for all layers.
bool use_halfsize
Specifies whether or not to use half sized memory or not.
InputParameter input_param
Returns the parameter set when initialized with LayerType.INPUT
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-...