@@ -160,7 +160,7 @@ void ConvGradKernel(const Context& dev_ctx,
160160 if (is_expand) {
161161 set_zero (dev_ctx, &transformed_input_grad, static_cast <T>(0 ));
162162 }
163- phi::funcs::Col2ImFunctor<phi::funcs::ColFormat::CFO , Context, T> col2im;
163+ phi::funcs::Col2ImFunctor<phi::funcs::ColFormat::kCFO , Context, T> col2im;
164164 phi::funcs::Col2VolFunctor<Context, T> col2vol;
165165
166166 for (int i = 0 ; i < batch_size; i++) {
@@ -214,7 +214,7 @@ void ConvGradKernel(const Context& dev_ctx,
214214 Tensor filter_grad_ = *filter_grad;
215215 filter_grad_.Resize (filter_matrix_shape);
216216 set_zero (dev_ctx, filter_grad, static_cast <T>(0 ));
217- phi::funcs::Im2ColFunctor<phi::funcs::ColFormat::CFO , Context, T> im2col;
217+ phi::funcs::Im2ColFunctor<phi::funcs::ColFormat::kCFO , Context, T> im2col;
218218 phi::funcs::Vol2ColFunctor<Context, T> vol2col;
219219 for (int i = 0 ; i < batch_size; i++) {
220220 DenseTensor out_grad_batch =
@@ -391,7 +391,7 @@ void ConvGradGradKernel(const Context& dev_ctx,
391391 if (is_expand) {
392392 set_zero (dev_ctx, &transformed_dX, static_cast <T>(0 ));
393393 }
394- phi::funcs::Col2ImFunctor<phi::funcs::ColFormat::CFO , Context, T> col2im;
394+ phi::funcs::Col2ImFunctor<phi::funcs::ColFormat::kCFO , Context, T> col2im;
395395 phi::funcs::Col2VolFunctor<Context, T> col2vol;
396396
397397 for (int i = 0 ; i < batch_size; i++) {
@@ -436,7 +436,7 @@ void ConvGradGradKernel(const Context& dev_ctx,
436436 set_zero (dev_ctx, dW, static_cast <T>(0 ));
437437 DenseTensor dW_arr = *dW;
438438 dW_arr.Resize (filter_matrix_shape);
439- phi::funcs::Im2ColFunctor<phi::funcs::ColFormat::CFO , Context, T> im2col;
439+ phi::funcs::Im2ColFunctor<phi::funcs::ColFormat::kCFO , Context, T> im2col;
440440 phi::funcs::Vol2ColFunctor<Context, T> vol2col;
441441 for (int i = 0 ; i < batch_size; ++i) {
442442 DenseTensor dy_batch =
@@ -483,7 +483,7 @@ void ConvGradGradKernel(const Context& dev_ctx,
483483 }
484484
485485 set_zero (dev_ctx, &transformed_ddY, static_cast <T>(0 ));
486- phi::funcs::Im2ColFunctor<phi::funcs::ColFormat::CFO , Context, T> im2col;
486+ phi::funcs::Im2ColFunctor<phi::funcs::ColFormat::kCFO , Context, T> im2col;
487487 phi::funcs::Vol2ColFunctor<Context, T> vol2col;
488488 for (int i = 0 ; i < batch_size; ++i) {
489489 DenseTensor ddy_batch =
0 commit comments