2using System.Collections.Generic;
49 using (BinaryReader br =
new BinaryReader(fs))
The Log class provides general output in text form.
void CHECK(bool b, string str)
Test a flag for true.
The Utility class provides general utility funtions.
static double[] ConvertVec(float[] rgf)
Convert an array of float to an array of generics.
The BlobCollection contains a list of Blobs.
void SetData(double df)
Set all blob data to the value specified.
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.
The ConstantLayer provides a layer that just outputs a constant value. This layer is initialized with...
ConstantLayer(CudaDnn< T > cuda, Log log, LayerParameter p)
The ConstantLayer constructor.
override void forward(BlobCollection< T > colBottom, BlobCollection< T > colTop)
Forward computation
override void backward(BlobCollection< T > colTop, List< bool > rgbPropagateDown, BlobCollection< T > colBottom)
Not implemented - constant Layers do not perform backward.
override void Reshape(BlobCollection< T > colBottom, BlobCollection< T > colTop)
Reshape the layer.
override void LayerSetUp(BlobCollection< T > colBottom, BlobCollection< T > colTop)
Setup the layer.
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 m_type
Specifies the Layer type.
The BlobProto contains the descripion of a blob.
List< float > data
Get/set the data as a List of float.
object Load(BinaryReader br, bool bNewInstance)
Loads a BlobProto from a binary reader.
Specifies the shape of a Blob.
BlobShape output_shape
Specifies the output shape.
string binary_data_file
Specifies a binary data file containing the values to load.
List< float > values_f
Specifies a set of float values used to fill the output. When only one item is specified,...
Specifies the base parameter for all layers.
ConstantParameter constant_param
Returns the parameter set when initialized with LayerType.CONSTANT
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-...