Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cyLi-Tiger committed Dec 8, 2023
1 parent c158a57 commit 165dd81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dipu/scripts/autogen_diopi_wrapper/diopi_functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1598,8 +1598,8 @@
* '''
*/
int SameAsInputSize = 7;
std::vector<at::Tensor> outputs(SameAsInputSize);
constexpr int kSameAsInputSize = 7;
std::vector<at::Tensor> outputs(kSameAsInputSize);
outputs[0] = result;
return outputs;
Expand Down Expand Up @@ -1709,8 +1709,8 @@
* '''
*/
int SameAsInputSize = 7;
std::vector<at::Tensor> outputs(SameAsInputSize);
constexpr int kSameAsInputSize = 7;
std::vector<at::Tensor> outputs(kSameAsInputSize);
outputs[0] = result;
return outputs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
$header_include_code
// NOTS: some kernels(eg. _foreach_add_.List) have custom code at the beginning with direct return, cause this warning
// NOTE: some kernels (e.g. _foreach_add_.List) have custom codes at the beginning ending with early return.
// NOLINTBEGIN(readability-redundant-control-flow)
namespace dipu {
Expand Down

0 comments on commit 165dd81

Please sign in to comment.