Skip to content

Commit 4736246

Browse files
committed
fix warning
1 parent b3f0f3d commit 4736246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/math/Matrix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ class Matrix : public BaseMatrix {
408408
LOG(FATAL) << "Not implemented";
409409
}
410410

411-
virtual void addBias(Matrix& b, real scale, bool sharedBias) {
411+
void addBias(Matrix& b, real scale, bool sharedBias) {
412412
if (!sharedBias) {
413413
addBias(b, scale);
414414
} else {
@@ -425,7 +425,7 @@ class Matrix : public BaseMatrix {
425425
LOG(FATAL) << "Not implemented";
426426
}
427427

428-
virtual void collectBias(Matrix& a, real scale, bool sharedBias) {
428+
void collectBias(Matrix& a, real scale, bool sharedBias) {
429429
if (!sharedBias) {
430430
collectBias(a, scale);
431431
} else {

0 commit comments

Comments
 (0)