mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-17 00:41:39 +00:00
[NFC] polish colossalai/nn/layer/parallel_3d/layers.py code style (#966)
This commit is contained in:
parent
955463e542
commit
fb5bc6cb28
@ -53,8 +53,8 @@ class LayerNorm3D(ParallelLayer):
|
||||
self.weight = Parameter(
|
||||
torch.ones(self.normalized_shape_per_partition, device=get_current_device(), dtype=dtype))
|
||||
if bias:
|
||||
self.bias = Parameter(torch.zeros(self.normalized_shape_per_partition,
|
||||
device=get_current_device(), dtype=dtype))
|
||||
self.bias = Parameter(
|
||||
torch.zeros(self.normalized_shape_per_partition, device=get_current_device(), dtype=dtype))
|
||||
else:
|
||||
self.bias = None
|
||||
self.variance_epsilon = eps
|
||||
|
Loading…
Reference in New Issue
Block a user