From ee56e7221a35311643243046921624acc58aa22b Mon Sep 17 00:00:00 2001 From: wangbo-zhao Date: Wed, 13 Jul 2022 10:16:28 +0800 Subject: [PATCH] [NFC] polish colossalai/nn/layer/parallel_1d/layers.py code style --- colossalai/nn/layer/parallel_1d/layers.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/colossalai/nn/layer/parallel_1d/layers.py b/colossalai/nn/layer/parallel_1d/layers.py index 9459e713912b..d2a466e4c292 100644 --- a/colossalai/nn/layer/parallel_1d/layers.py +++ b/colossalai/nn/layer/parallel_1d/layers.py @@ -176,7 +176,6 @@ def __init__(self, set_parallel_input(False) env.vocab_parallel = False - def reset_parameters(self, weight_initializer, bias_initializer) -> None: fan_in, fan_out = self.in_features, self.num_classes if self.has_weight: @@ -450,7 +449,6 @@ def __init__(self, is_parallel_output = not self.gather_output set_parallel_input(is_parallel_output) - def reset_parameters(self, weight_initializer, bias_initializer) -> None: fan_in, fan_out = self.in_features, self.out_features weight_initializer(self.weight, fan_in=fan_in, fan_out=fan_out) @@ -589,7 +587,6 @@ def __init__(self, self._set_tensor_parallel_attributes() set_parallel_input(False) - def reset_parameters(self, weight_initializer, bias_initializer) -> None: fan_in, fan_out = self.in_features, self.out_features weight_initializer(self.weight, fan_in=fan_in, fan_out=fan_out)