Commit fb5bc6cb authored by LuGY's avatar LuGY Committed by binmakeswell
Browse files

[NFC] polish colossalai/nn/layer/parallel_3d/layers.py code style (#966)

parent 955463e5
...@@ -53,8 +53,8 @@ class LayerNorm3D(ParallelLayer): ...@@ -53,8 +53,8 @@ class LayerNorm3D(ParallelLayer):
self.weight = Parameter( self.weight = Parameter(
torch.ones(self.normalized_shape_per_partition, device=get_current_device(), dtype=dtype)) torch.ones(self.normalized_shape_per_partition, device=get_current_device(), dtype=dtype))
if bias: if bias:
self.bias = Parameter(torch.zeros(self.normalized_shape_per_partition, self.bias = Parameter(
device=get_current_device(), dtype=dtype)) torch.zeros(self.normalized_shape_per_partition, device=get_current_device(), dtype=dtype))
else: else:
self.bias = None self.bias = None
self.variance_epsilon = eps self.variance_epsilon = eps
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment