Fügen Sie .compat.v1.
hinzu
>>> tf.get_variable_scope()
AttributeError: module 'tensorflow' has no attribute 'variable_scope'
>>> tf.compat.v1.get_variable_scope()
<tensorflow.python.ops.variable_scope.VariableScope at 0x7f41e7efb198>
Recommended Posts