@@ -249,7 +249,7 @@ void MagmaEig(const Context& dev_ctx,
249249 // magma will modify original input, so copy to cpu at any case
250250 DenseTensor input_copy_cpu;
251251 input_copy_cpu.Resize (input.dims ());
252- Copy (dev_ctx, input, phi:: CPUPlace (), false , &input_copy_cpu);
252+ Copy (dev_ctx, input, CPUPlace (), false , &input_copy_cpu);
253253
254254 using RealT = typename phi::dtype::Real<T>;
255255 magma_vec_t jobvr = MagmaVec;
@@ -274,7 +274,7 @@ void MagmaEig(const Context& dev_ctx,
274274 phi::dtype::Real<T>* rwork_data = nullptr ;
275275
276276 rwork.Resize (common::make_ddim ({lda * 2 }));
277- auto cpu_place = phi:: CPUPlace ();
277+ auto cpu_place = CPUPlace ();
278278 phi::DeviceContextPool& pool = phi::DeviceContextPool::Instance ();
279279 auto * cpu_ctx = static_cast <phi::CPUContext*>(pool.Get (cpu_place));
280280 rwork_data = (*cpu_ctx).template Alloc <phi::dtype::Real<T>>(&rwork);
@@ -345,7 +345,7 @@ void ApplyEigKernelMagma(const Context& dev_ctx,
345345
346346 DenseTensor vectors_row_major_cpu;
347347 vectors_row_major_cpu.Resize (input.dims ());
348- auto cpu_place = phi:: CPUPlace ();
348+ auto cpu_place = CPUPlace ();
349349 phi::DeviceContextPool& pool = phi::DeviceContextPool::Instance ();
350350 auto * cpu_ctx = static_cast <phi::CPUContext*>(pool.Get (cpu_place));
351351 (*cpu_ctx).template Alloc <T>(&vectors_row_major_cpu);
0 commit comments