def __init__(self, layers_setting, attention_norm_type, inter_activation, attention_dropout_prob, hidden_dropout_prob, output_dropout_prob):
    super(SketchALEncoder, self).__init__()
    layer_paras = {'attention_norm_type': attention_norm_type, 'inter_activation': inter_activation, 'attention_dropout_prob': attention_dropout_prob, 'hidden_dropout_prob': hidden_dropout_prob, 'output_dropout_prob': output_dropout_prob}
    setting2dict(layer_paras, layers_setting[0])
    self.sketch_layer = SketchLayer(**layer_paras)
    self.layers = []
    for layer_setting in layers_setting:
        self.layers.append(self.sketch_layer)
def __init__(self, layers_setting, attention_norm_type, inter_activation, attention_dropout_prob, hidden_dropout_prob, output_dropout_prob):
    super(SketchALEncoder, self).__init__()
    layer_paras = {'attention_norm_type': attention_norm_type, 'inter_activation': inter_activation, 'attention_dropout_prob': attention_dropout_prob, 'hidden_dropout_prob': hidden_dropout_prob, 'output_dropout_prob': output_dropout_prob}
    setting2dict(layer_paras, layers_setting[0])
    self.sketch_layer = SketchLayer(**layer_paras)
    self.layers = []
    for layer_setting in layers_setting:
        self.layers.append(self.sketch_layer)