在GitHub上有一个问题(仍然是开放的)有一个解决方法 https://github.com/tensorflow/tensorflow/issues/9545
from tensorflow.python.ops import variable_scope as var_scope def simple_variable_scope(name_or_scope, reuse=None): """Creates a variable scope without also creating a name scope.""" return var_scope.variable_scope(name_or_scope, reuse=reuse, auxiliary_name_scope=False)