@Name(value="caffe::AccuracyLayer<float>") @NoOffset @Properties(inherit=caffe.class) public class FloatAccuracyLayer extends FloatLayer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
FloatAccuracyLayer(LayerParameter param) |
FloatAccuracyLayer(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Backward_cpu(FloatBlobVector top,
BoolVector propagate_down,
FloatBlobVector bottom) |
int |
ExactNumBottomBlobs()
\brief Returns the exact number of bottom blobs required by the layer,
or -1 if no exact number is required.
|
protected void |
Forward_cpu(FloatBlobVector bottom,
FloatBlobVector top) |
void |
LayerSetUp(FloatBlobVector bottom,
FloatBlobVector top)
\brief Does layer-specific setup: your layer should implement this function
as well as Reshape.
|
int |
MaxTopBlobs()
\brief Returns the maximum number of top blobs required by the layer,
or -1 if no maximum number is required.
|
int |
MinTopBlobs()
\brief Returns the minimum number of top blobs required by the layer,
or -1 if no minimum number is required.
|
void |
Reshape(FloatBlobVector bottom,
FloatBlobVector top)
\brief Adjust the shapes of top blobs and internal buffers to accommodate
the shapes of the bottom blobs.
|
BytePointer |
type()
\brief Returns the layer type.
|
AllowForceBackward, AutoTopBlobs, Backward_gpu, Backward, blobs, CheckBlobCounts, EqualNumBottomTopBlobs, ExactNumTopBlobs, Forward_gpu, Forward, layer_param, loss, MaxBottomBlobs, MinBottomBlobs, param_propagate_down, set_loss, set_param_propagate_down, SetUp, ToProtoaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic FloatAccuracyLayer(Pointer p)
Pointer.Pointer(Pointer).public FloatAccuracyLayer(@Const @ByRef LayerParameter param)
param - provides AccuracyParameter accuracy_param,
with AccuracyLayer options:
- top_k (\b optional, default 1).
Sets the maximum rank k at which a prediction is considered
correct. For example, if k = 5 , a prediction is counted
correct if the correct label is among the top 5 predicted labels.@Virtual public void LayerSetUp(@Const @ByRef FloatBlobVector bottom, @Const @ByRef FloatBlobVector top)
FloatLayerLayerSetUp in class FloatLayerbottom - the preshaped input blobs, whose data fields store the input data for
this layertop - the allocated but unshaped output blobs
This method should do one-time layer specific setup. This includes reading
and processing relevent parameters from the layer_param_.
Setting up the shapes of top blobs and internal buffers should be done in
Reshape, which will be called before the forward pass to
adjust the top blob sizes.@Virtual public void Reshape(@Const @ByRef FloatBlobVector bottom, @Const @ByRef FloatBlobVector top)
FloatLayerReshape in class FloatLayerbottom - the input blobs, with the requested input shapestop - the top blobs, which should be reshaped as needed
This method should reshape top blobs as needed according to the shapes
of the bottom (input) blobs, as well as reshaping any internal buffers
and making any other necessary adjustments so that the layer can
accommodate the bottom blobs.@Virtual @Const(value={false,false,true}) @Cast(value="const char*") public BytePointer type()
FloatLayertype in class FloatLayer@Virtual @Const(value={false,false,true}) public int ExactNumBottomBlobs()
FloatLayerExactNumBottomBlobs in class FloatLayer@Virtual @Const(value={false,false,true}) public int MinTopBlobs()
FloatLayerMinTopBlobs in class FloatLayer@Virtual @Const(value={false,false,true}) public int MaxTopBlobs()
FloatLayerMaxTopBlobs in class FloatLayer@Virtual protected void Forward_cpu(@Const @ByRef FloatBlobVector bottom, @Const @ByRef FloatBlobVector top)
Forward_cpu in class FloatLayer@Virtual protected void Backward_cpu(@Const @ByRef FloatBlobVector top, @Const @ByRef BoolVector propagate_down, @Const @ByRef FloatBlobVector bottom)
Backward_cpu in class FloatLayerCopyright © 2019. All rights reserved.