mirror of https://github.com/hpcaitech/ColossalAI
fix parallel_input flag for Linear1D_Col gather_output
parent
a9f778f1b1
commit
666cfd094a
|
@ -302,7 +302,10 @@ class Linear1D_Col(ParallelLayer):
|
|||
with seed(ParallelMode.TENSOR):
|
||||
self.reset_parameters(weight_initializer, bias_initializer)
|
||||
self._set_tensor_parallel_attributes()
|
||||
set_parallel_input(True)
|
||||
if self.gather_output:
|
||||
set_parallel_input(False)
|
||||
else:
|
||||
set_parallel_input(True)
|
||||
|
||||
def reset_parameters(self, weight_initializer, bias_initializer) -> None:
|
||||
fan_in, fan_out = self.in_features, self.out_features
|
||||
|
|
Loading…
Reference in New Issue