diff --git a/paddle/phi/api/include/tensor.h b/paddle/phi/api/include/tensor.h index b68db1f45fa8fe5b3363bb99d9416b824f15f5db..c056491e45312a77a70b2c97ba8c4cb2f07b5a25 100644 --- a/paddle/phi/api/include/tensor.h +++ b/paddle/phi/api/include/tensor.h @@ -435,7 +435,7 @@ class PADDLE_API Tensor final { * data type template argument * * @tparam T - * @param target_place, the target place of which the tensor will copy to. + * @param target_place The target place of which the tensor will copy to. * @return Tensor */ template @@ -444,8 +444,8 @@ class PADDLE_API Tensor final { /** * @brief Transfer the current Tensor to the specified device and return. * - * @param place, The target place of which the tensor will copy to. - * @param blocking, Should we copy this in sync way. + * @param place The target place of which the tensor will copy to. + * @param blocking Should we copy this in sync way. * @return Tensor */ Tensor copy_to(const Place& place, bool blocking) const; @@ -453,8 +453,8 @@ class PADDLE_API Tensor final { /** * @brief Transfer the source Tensor to current Tensor. * - * @param src, the source Tensor to be copied. - * @param blocking, Should we copy this in sync way. + * @param src The source Tensor to be copied. + * @param blocking Should we copy this in sync way. * @return void */ void copy_(const Tensor& src, const Place& target_place, bool blocking); @@ -589,7 +589,7 @@ class PADDLE_API Tensor final { /** * @brief Convert DenseTensor or SparseCsrTensor to SparseCooTensor * - * @param sparse_dim, The number of sparse dimensions + * @param sparse_dim The number of sparse dimensions * @return Tensor */ Tensor to_sparse_coo(const int64_t sparse_dim) const; diff --git a/paddle/phi/api/profiler/event_tracing.h b/paddle/phi/api/profiler/event_tracing.h index bbecbe4da57d53bbe5ff9bc9fa07471b3cdac8c5..8cbf09488e48600914ef097efb3aaec0b35df045 100644 --- a/paddle/phi/api/profiler/event_tracing.h +++ b/paddle/phi/api/profiler/event_tracing.h @@ -32,13 +32,13 @@ class RecordEvent { public: static bool IsEnabled(); /** - * @param name: If your string argument has a longer lifetime (e.g.: string + * @param name If your string argument has a longer lifetime (e.g.: string * literal, static variables, etc) than the event, use 'const char* name'. * Do your best to avoid using 'std::string' as the argument type. It will * cause deep-copy to harm performance. - * @param type: Classification which is used to instruct the profiling + * @param type Classification which is used to instruct the profiling * data statistics. - * @param level: Used to filter events, works like glog VLOG(level). + * @param level Used to filter events, works like glog VLOG(level). * RecordEvent will works if HostTraceLevel >= level. */ explicit RecordEvent( @@ -48,11 +48,11 @@ class RecordEvent { const EventRole role = EventRole::kOrdinary); /** - * @param name: It is the caller's reponsibility to manage the underlying + * @param name It is the caller's reponsibility to manage the underlying * storage. RecordEvent stores the pointer. - * @param type: Classification which is used to instruct the profiling + * @param type Classification which is used to instruct the profiling * data statistics. - * @param level: Used to filter events, works like glog VLOG(level). + * @param level Used to filter events, works like glog VLOG(level). * RecordEvent will works if HostTraceLevel >= level. */ explicit RecordEvent(