* update function can not be inherited since updateImpl exsits
* remove update implementation in one inherited updater
avx_docs
backyes 9 years ago
parent 7000cb617a
commit b6dfd2891b

@ -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) {}
};
/**

Loading…
Cancel
Save