Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
momo609 committed Jun 8, 2023
1 parent ecdb7e1 commit 8011be9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmcv/ops/csrc/pytorch/npu/roi_pool_npu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ void roi_pool_forward_npu(Tensor input, Tensor rois, Tensor output,
.Attr("spatial_scale_w", spatial_scale)
.Attr("pool_channel", pooled_channel)
.Run();

} else {
OpCommand cmd;
cmd.Name("RoiPoolingWithArgMax")
Expand All @@ -38,7 +39,7 @@ void roi_pool_forward_npu(Tensor input, Tensor rois, Tensor output,
.Attr("spatial_scale_h", spatial_scale)
.Attr("spatial_scale_w", spatial_scale)
.Attr("pool_channel", pooled_channel)
.Attr("_exclude_engines", (string)"AiCore")
.Attr("_exclude_engines", (string) "AiCore")
.Run();
}

Expand Down

0 comments on commit 8011be9

Please sign in to comment.