提交 b0a1d8ab 编写于 作者: 小湉湉's avatar 小湉湉

fix base

上级 46932922
...@@ -120,7 +120,7 @@ class BaseEncoder(nn.Layer): ...@@ -120,7 +120,7 @@ class BaseEncoder(nn.Layer):
stochastic_depth_rate: float=0.0, stochastic_depth_rate: float=0.0,
intermediate_layers: Union[List[int], None]=None, intermediate_layers: Union[List[int], None]=None,
encoder_type: str="transformer"): encoder_type: str="transformer"):
"""Construct an Bae Encoder object.""" """Construct an Base Encoder object."""
super().__init__() super().__init__()
activation = get_activation(activation_type) activation = get_activation(activation_type)
pos_enc_class = self.get_pos_enc_class(pos_enc_layer_type, pos_enc_class = self.get_pos_enc_class(pos_enc_layer_type,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册