Skip to content

Commit

Permalink
fixed bugs in batchnorm testcase (#2995)
Browse files Browse the repository at this point in the history
  • Loading branch information
cubehan3 authored Nov 25, 2024
1 parent 21cb73b commit 1c95e07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LayerCase(paddle.nn.Layer):

def __init__(self):
super(LayerCase, self).__init__()
self.func = paddle.nn.BatchNorm1D(num_features=1, momentum=0.1, epsilon=1e-05, weight_attr=False, data_format='NCL', )
self.func = paddle.nn.BatchNorm1D(num_features=1, momentum=0.1, epsilon=1e-05, weight_attr=False, bias_attr=False, data_format='NCL', )

def forward(self, data, ):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LayerCase(paddle.nn.Layer):

def __init__(self):
super(LayerCase, self).__init__()
self.func = paddle.nn.BatchNorm2D(num_features=1, momentum=0.1, epsilon=1e-05, data_format='NCHW', weight_attr=False, )
self.func = paddle.nn.BatchNorm2D(num_features=1, momentum=0.1, epsilon=1e-05, data_format='NCHW', weight_attr=False, bias_attr=False)

def forward(self, data, ):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LayerCase(paddle.nn.Layer):

def __init__(self):
super(LayerCase, self).__init__()
self.func = paddle.nn.BatchNorm3D(num_features=1, momentum=0.1, epsilon=1e-05, weight_attr=False, )
self.func = paddle.nn.BatchNorm3D(num_features=1, momentum=0.1, epsilon=1e-05, weight_attr=False, bias_attr=False)

def forward(self, data, ):
"""
Expand Down

0 comments on commit 1c95e07

Please sign in to comment.