mirror of https://github.com/Jittor/Jittor
Update BatchNorm1d
Change default value of affine in BatchNorm1d to be True.
This commit is contained in:
parent
08d6f8e607
commit
798018880e
|
@ -371,7 +371,7 @@ class BatchNorm(Module):
|
|||
return norm_x * w + b
|
||||
|
||||
class BatchNorm1d(Module):
|
||||
def __init__(self, num_features, eps=1e-5, momentum=0.1, affine=None, is_train=True, sync=True):
|
||||
def __init__(self, num_features, eps=1e-5, momentum=0.1, affine=True, is_train=True, sync=True):
|
||||
self.sync = sync
|
||||
self.num_features = num_features
|
||||
self.is_train = is_train
|
||||
|
|
Loading…
Reference in New Issue