Skip to content

Commit

Permalink
fixed parrots SyncBN
Browse files Browse the repository at this point in the history
  • Loading branch information
xvjiarui committed Jun 25, 2021
1 parent 9838447 commit d9af6b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mmcv/utils/parrots_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ def _get_norm():

class SyncBatchNorm(SyncBatchNorm_):

def _specify_ddp_gpu_num(self, gpu_size):
if TORCH_VERSION != 'parrots':
super()._specify_ddp_gpu_num(gpu_size)

def _check_input_dim(self, input):
if TORCH_VERSION == 'parrots':
if input.dim() < 2:
Expand Down

0 comments on commit d9af6b0

Please sign in to comment.