Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerryzcn committed Oct 25, 2019
1 parent b2f9c64 commit a31079f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/operator/contrib/mrcnn_mask_target.cu
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ __device__ void RoIAlignForward(
T roi_height = roi_end_h - roi_start_h;

// Force malformed ROIs to be 1x1
if (!continuous_coordinate) { // backward compatiblity
if (!continuous_coordinate) { // backward compatiblity
// Force malformed ROIs to be 1x1
roi_width = max(roi_width, (T)1.);
roi_height = max(roi_height, (T)1.);
Expand Down Expand Up @@ -260,7 +260,7 @@ void MRCNNMaskTargetRun<gpu>(const MRCNNMaskTargetParam& param, const std::vecto

MRCNNMaskTargetKernel<<<dimGrid, dimBlock, 0, stream>>>
(rois.dptr_, gt_masks.dptr_, matches.dptr_, cls_targets.dptr_,
out_masks.dptr_, out_mask_cls.dptr_, num_el, param.aligned,
out_masks.dptr_, out_mask_cls.dptr_, num_el, param.aligned,
batch_size, param.num_classes, param.num_rois,
num_gtmasks, gt_height, gt_width,
param.mask_size[0], param.mask_size[1], param.sample_ratio);
Expand Down
4 changes: 2 additions & 2 deletions src/operator/contrib/roi_align.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ num_threads(engine::OpenMP::Get()->GetRecommendedOMPThreadCount())
if (continuous_coordinate) {
CHECK_GT(roi_width, 0.);
CHECK_GT(roi_height, 0.);
} else { // backward compatiblity
} else { // backward compatiblity
// Force malformed ROIs to be 1x1
roi_width = std::max(roi_width, (T)1.);
roi_height = std::max(roi_height, (T)1.);
Expand Down Expand Up @@ -367,7 +367,7 @@ void ROIAlignBackward(

T roi_width = roi_end_w - roi_start_w;
T roi_height = roi_end_h - roi_start_h;
if (!continuous_coordinate) { // backward compatiblity
if (!continuous_coordinate) { // backward compatiblity
// Force malformed ROIs to be 1x1
roi_width = std::max(roi_width, (T)1.);
roi_height = std::max(roi_height, (T)1.);
Expand Down
4 changes: 2 additions & 2 deletions src/operator/contrib/roi_align.cu
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ __global__ void RoIAlignForwardKernel(

T roi_width = roi_end_w - roi_start_w;
T roi_height = roi_end_h - roi_start_h;
if (!continuous_coordinate) { // backward compatiblity
if (!continuous_coordinate) { // backward compatiblity
// Force malformed ROIs to be 1x1
roi_width = max(roi_width, (T)1.);
roi_height = max(roi_height, (T)1.);
Expand Down Expand Up @@ -284,7 +284,7 @@ __global__ void RoIAlignBackwardKernel(

T roi_width = roi_end_w - roi_start_w;
T roi_height = roi_end_h - roi_start_h;
if (!continuous_coordinate) { // backward compatiblity
if (!continuous_coordinate) { // backward compatiblity
// Force malformed ROIs to be 1x1
roi_width = max(roi_width, (T)1.);
roi_height = max(roi_height, (T)1.);
Expand Down

0 comments on commit a31079f

Please sign in to comment.