def variable_mapping(self):
    '映射到TF版GPT权重格式\n        '
    mapping = super(GPT, self).variable_mapping()
    mapping = {k: [i.replace('bert/', 'gpt/').replace('encoder', 'transformer') for i in v] for (k, v) in mapping.items()}
    return mapping
映射到TF版GPT权重格式
def variable_mapping(self):
    '\n        '
    mapping = super(GPT, self).variable_mapping()
    mapping = {k: [i.replace('bert/', 'gpt/').replace('encoder', 'transformer') for i in v] for (k, v) in mapping.items()}
    return mapping