@@ -19,7 +19,7 @@ namespace operators {
19
19
namespace math {
20
20
21
21
template <typename T>
22
- struct MatrixBitCodeFunctorAdd : public boost ::static_visitor< void > {
22
+ struct MatrixBitCodeFunctorAdd {
23
23
const framework::Tensor &vec_;
24
24
framework::Tensor *tmat_;
25
25
@@ -51,7 +51,7 @@ void MatrixBitCodeFunctor<T>::Add(const framework::Tensor &vec,
51
51
}
52
52
53
53
template <typename T>
54
- struct MatrixBitCodeFunctorAddGrad : public boost ::static_visitor< void > {
54
+ struct MatrixBitCodeFunctorAddGrad {
55
55
const framework::Tensor &tmat_;
56
56
framework::Tensor *vec_;
57
57
MatrixBitCodeFunctorAddGrad (const framework::Tensor &tmat,
@@ -83,7 +83,7 @@ void MatrixBitCodeFunctor<T>::AddGrad(const framework::Tensor &tmat,
83
83
}
84
84
85
85
template <typename T>
86
- struct MatrixBitCodeFunctorSum : public boost ::static_visitor< void > {
86
+ struct MatrixBitCodeFunctorSum {
87
87
const framework::Tensor &tmat_;
88
88
framework::Tensor *sum_;
89
89
T scale_sum_;
@@ -125,7 +125,7 @@ void MatrixBitCodeFunctor<T>::Sum(const framework::Tensor &tmat,
125
125
}
126
126
127
127
template <typename T>
128
- struct MatrixBitCodeFunctorMul : public boost ::static_visitor< void > {
128
+ struct MatrixBitCodeFunctorMul {
129
129
framework::Tensor *tmat_;
130
130
const framework::Tensor &weight_;
131
131
const framework::Tensor &input_;
@@ -174,7 +174,7 @@ class ReservedVector : public std::vector<T> {
174
174
};
175
175
176
176
template <typename T>
177
- struct MatrixBitCodeFunctorMulGradWeight : public boost ::static_visitor< void > {
177
+ struct MatrixBitCodeFunctorMulGradWeight {
178
178
const framework::Tensor &tmat_;
179
179
framework::Tensor *weight_;
180
180
const framework::Tensor &input_;
@@ -224,8 +224,7 @@ void MatrixBitCodeFunctor<T>::MulGradWeight(const framework::Tensor &tmat,
224
224
}
225
225
226
226
template <typename T>
227
- struct MatrixBitCodeFunctorMulGradWeightSR
228
- : public boost::static_visitor<void > {
227
+ struct MatrixBitCodeFunctorMulGradWeightSR {
229
228
const framework::Tensor &tmat_;
230
229
phi::SelectedRows *weight_;
231
230
const framework::Tensor &input_;
@@ -280,7 +279,7 @@ void MatrixBitCodeFunctor<T>::MulGradWeight(const framework::Tensor &tmat,
280
279
}
281
280
282
281
template <typename T>
283
- struct MatrixBitCodeFunctorMulGradError : public boost ::static_visitor< void > {
282
+ struct MatrixBitCodeFunctorMulGradError {
284
283
const framework::Tensor &tmat_;
285
284
const framework::Tensor &weight_;
286
285
framework::Tensor *input_;
@@ -324,7 +323,7 @@ void MatrixBitCodeFunctor<T>::MulGradError(const framework::Tensor &tmat,
324
323
}
325
324
326
325
template <typename T>
327
- struct MatrixBitCodeFunctorSub : public boost ::static_visitor< void > {
326
+ struct MatrixBitCodeFunctorSub {
328
327
framework::Tensor *tmat_;
329
328
330
329
explicit MatrixBitCodeFunctorSub (framework::Tensor *tmat) : tmat_(tmat) {}
0 commit comments