def load_variable(self, checkpoint, name):
    '加载单个变量的函数\n        '
    if isinstance(checkpoint, dict):
        return checkpoint[name]
    else:
        return tf.train.load_variable(checkpoint, name)
加载单个变量的函数
def load_variable(self, checkpoint, name):
    '\n        '
    if isinstance(checkpoint, dict):
        return checkpoint[name]
    else:
        return tf.train.load_variable(checkpoint, name)