Skip to content

Commit 8d24931

Browse files
author
gaoyuan
committed
Change member variables from public to protected
1 parent f202929 commit 8d24931

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

paddle/gserver/layers/PriorBox.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ limitations under the License. */
1818

1919
namespace paddle {
2020
/**
21-
* @brief A layer for generate prior box locations and variances.
21+
* @brief A layer for generating priorbox locations and variances.
2222
* - Input: Two and only two input layer are accepted. The input layer must be
2323
* be a data output layer and a convolution output layer.
24-
* - Output: The prior box locations and variances of the input data.
24+
* - Output: The priorbox locations and variances of the input data.
2525
* Reference:
2626
* Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed,
2727
* Cheng-Yang Fu, Alexander C. Berg. SSD: Single Shot MultiBox Detector
@@ -31,8 +31,11 @@ class PriorBoxLayer : public Layer {
3131
public:
3232
explicit PriorBoxLayer(const LayerConfig& config) : Layer(config) {}
3333
bool init(const LayerMap& layerMap, const ParameterMap& parameterMap);
34+
3435
void forward(PassType passType);
3536
void backward(const UpdateCallback& callback) {}
37+
38+
protected:
3639
int numPriors_;
3740
std::vector<int> minSize_;
3841
std::vector<int> maxSize_;

0 commit comments

Comments
 (0)