提交 8d249315 编写于 作者: G gaoyuan

Change member variables from public to protected

上级 f2029298
...@@ -18,10 +18,10 @@ limitations under the License. */ ...@@ -18,10 +18,10 @@ limitations under the License. */
namespace paddle { namespace paddle {
/** /**
* @brief A layer for generate prior box locations and variances. * @brief A layer for generating priorbox locations and variances.
* - Input: Two and only two input layer are accepted. The input layer must be * - Input: Two and only two input layer are accepted. The input layer must be
* be a data output layer and a convolution output layer. * be a data output layer and a convolution output layer.
* - Output: The prior box locations and variances of the input data. * - Output: The priorbox locations and variances of the input data.
* Reference: * Reference:
* Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, * Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed,
* Cheng-Yang Fu, Alexander C. Berg. SSD: Single Shot MultiBox Detector * Cheng-Yang Fu, Alexander C. Berg. SSD: Single Shot MultiBox Detector
...@@ -31,8 +31,11 @@ class PriorBoxLayer : public Layer { ...@@ -31,8 +31,11 @@ class PriorBoxLayer : public Layer {
public: public:
explicit PriorBoxLayer(const LayerConfig& config) : Layer(config) {} explicit PriorBoxLayer(const LayerConfig& config) : Layer(config) {}
bool init(const LayerMap& layerMap, const ParameterMap& parameterMap); bool init(const LayerMap& layerMap, const ParameterMap& parameterMap);
void forward(PassType passType); void forward(PassType passType);
void backward(const UpdateCallback& callback) {} void backward(const UpdateCallback& callback) {}
protected:
int numPriors_; int numPriors_;
std::vector<int> minSize_; std::vector<int> minSize_;
std::vector<int> maxSize_; std::vector<int> maxSize_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册