提交 b6dfd289 编写于 作者: backyes's avatar backyes

fix bug:

* update function can not be inherited since updateImpl exsits
* remove update implementation in one inherited updater
上级 7000cb61
......@@ -55,7 +55,7 @@ public:
// between startBatch() and finishBatch(), update() will be called
// by the trainer multiple times, each time for updating one Parameter
// with its gradient in PARAMETER_GRADIENT
virtual void update(Parameter* para) {
void update(Parameter* para) {
SetDevice setDevice(para->getDeviceId());
para->updateHook();
this->updateImpl(para);
......
......@@ -184,7 +184,6 @@ protected:
* @param para
*/
virtual void updateImpl(Parameter* para) {}
virtual void update(Parameter* para) {}
};
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册