Added the command, tf.compat.v1.disable_eager_execution as the Variable Scope works as expected in Graph Mode
Fixes #46133 PiperOrigin-RevId: 350071431 Change-Id: Ibb2d4b04d7733123061c71d3e06b7676e1b7ceed
This commit is contained in:
parent
557930d4d9
commit
3dd788af5b
@ -2085,6 +2085,12 @@ class variable_scope(object):
|
||||
see the [Variable Scope How To](https://tensorflow.org/guide/variables), here
|
||||
we present only a few basic examples.
|
||||
|
||||
The Variable Scope works as expected when the Eager Execution is Disabled.
|
||||
|
||||
```python
|
||||
tf.compat.v1.disable_eager_execution()
|
||||
```
|
||||
|
||||
Simple example of how to create a new variable:
|
||||
|
||||
```python
|
||||
|
Loading…
x
Reference in New Issue
Block a user