Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 1c965c4

Browse files
T2T Teamcopybara-github
authored andcommitted
Fix two tensor2tensor Colab notebooks.
PiperOrigin-RevId: 302535311
1 parent 543293c commit 1c965c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tensor2tensor/notebooks/t2t_problem.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"import tensorflow as tf\n",
128128
"\n",
129129
"# Enable Eager execution - useful for seeing the generated data.\n",
130-
"tf.enable_eager_execution()"
130+
"tf.compat.v1.enable_eager_execution()"
131131
]
132132
},
133133
{
@@ -171,9 +171,9 @@
171171
"TMP_DIR = os.path.expanduser(\"/tmp/t2t/tmp\")\n",
172172
"\n",
173173
"# Create them.\n",
174-
"tf.gfile.MakeDirs(DATA_DIR)\n",
175-
"tf.gfile.MakeDirs(OUTPUT_DIR)\n",
176-
"tf.gfile.MakeDirs(TMP_DIR)"
174+
"tf.io.gfile.makedirs(DATA_DIR)\n",
175+
"tf.io.gfile.makedirs(OUTPUT_DIR)\n",
176+
"tf.io.gfile.makedirs(TMP_DIR)"
177177
]
178178
},
179179
{

0 commit comments

Comments
 (0)