@Name(value="caffe::EuclideanLossLayer<double>") @NoOffset @Properties(inherit=caffe.class) public class DoubleEuclideanLossLayer extends DoubleLossLayer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DoubleEuclideanLossLayer(LayerParameter param) |
DoubleEuclideanLossLayer(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AllowForceBackward(int bottom_index)
Unlike most loss layers, in the EuclideanLossLayer we can backpropagate
to both inputs -- override to return true and always allow force_backward.
|
protected void |
Backward_cpu(DoubleBlobVector top,
BoolVector propagate_down,
DoubleBlobVector bottom) |
protected void |
Backward_gpu(DoubleBlobVector top,
BoolVector propagate_down,
DoubleBlobVector bottom) |
protected void |
Forward_cpu(DoubleBlobVector bottom,
DoubleBlobVector top) |
protected void |
Forward_gpu(DoubleBlobVector bottom,
DoubleBlobVector top) |
void |
Reshape(DoubleBlobVector bottom,
DoubleBlobVector 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.
|
AutoTopBlobs, ExactNumBottomBlobs, ExactNumTopBlobs, LayerSetUp
Backward, blobs, CheckBlobCounts, EqualNumBottomTopBlobs, Forward, layer_param, loss, MaxBottomBlobs, MaxTopBlobs, MinBottomBlobs, MinTopBlobs, param_propagate_down, set_loss, set_param_propagate_down, SetUp, ToProto
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public DoubleEuclideanLossLayer(Pointer p)
Pointer(Pointer)
.public DoubleEuclideanLossLayer(@Const @ByRef LayerParameter param)
@Virtual public void Reshape(@Const @ByRef DoubleBlobVector bottom, @Const @ByRef DoubleBlobVector top)
DoubleLayer
Reshape
in class DoubleLossLayer
bottom
- 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()
DoubleLayer
type
in class DoubleLayer
@Virtual @Cast(value="bool") @Const(value={false,false,true}) public boolean AllowForceBackward(@Const int bottom_index)
AllowForceBackward
in class DoubleLossLayer
@Virtual protected void Forward_cpu(@Const @ByRef DoubleBlobVector bottom, @Const @ByRef DoubleBlobVector top)
Forward_cpu
in class DoubleLayer
@Virtual protected void Forward_gpu(@Const @ByRef DoubleBlobVector bottom, @Const @ByRef DoubleBlobVector top)
Forward_gpu
in class DoubleLayer
@Virtual protected void Backward_cpu(@Const @ByRef DoubleBlobVector top, @Const @ByRef BoolVector propagate_down, @Const @ByRef DoubleBlobVector bottom)
Backward_cpu
in class DoubleLayer
@Virtual protected void Backward_gpu(@Const @ByRef DoubleBlobVector top, @Const @ByRef BoolVector propagate_down, @Const @ByRef DoubleBlobVector bottom)
Backward_gpu
in class DoubleLayer
Copyright © 2022. All rights reserved.