Skip to content

Commit

Permalink
revise BaseInit args
Browse files Browse the repository at this point in the history
  • Loading branch information
MeowZheng committed Feb 7, 2021
1 parent 27b71d2 commit 3077fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmcv/cnn/utils/weight_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def bias_init_with_prob(prior_prob):

class BaseInit(object):

def __init__(self, bias=0, bias_prob=None, layer=None):
def __init__(self, *, bias=0, bias_prob=None, layer=None):
if not isinstance(bias, (int, float)):
raise TypeError(f'bias must be a numbel, but got a {type(bias)}')

Expand Down

0 comments on commit 3077fe5

Please sign in to comment.