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

Commit 02962d1

Browse files
afrozenatorcopybara-github
authored andcommitted
Hide internal colab magic methods from OSS, they don't work with jupyter.
PiperOrigin-RevId: 289117201
1 parent 1655763 commit 02962d1

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

tensor2tensor/notebooks/Transformer_translate.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
"colab": {}
109109
},
110110
"source": [
111-
"%tensorflow_version 1.x\n",
112111
"import tensorflow as tf\n",
113112
"import os\n",
114113
"\n",
@@ -1100,4 +1099,4 @@
11001099
"outputs": []
11011100
}
11021101
]
1103-
}
1102+
}

tensor2tensor/notebooks/asr_transformer.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
},
7171
"outputs": [],
7272
"source": [
73-
"%tensorflow_version 1.x\n",
7473
"import tensorflow as tf\n",
7574
"import matplotlib.pyplot as plt\n",
7675
"import numpy as np\n",

tensor2tensor/notebooks/hello_t2t.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"outputs": [],
6666
"source": [
6767
"# Imports we need.\n",
68-
"%tensorflow_version 1.x\n",
6968
"import tensorflow as tf\n",
7069
"import matplotlib.pyplot as plt\n",
7170
"import numpy as np\n",

tensor2tensor/notebooks/t2t_problem.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
"source": [
137137
"#@title Run this only once - Sets up TF Eager execution.\n",
138138
"\n",
139-
"%tensorflow_version 1.x\n",
140139
"import tensorflow as tf\n",
141140
"\n",
142141
"# Enable Eager execution - useful for seeing the generated data.\n",

0 commit comments

Comments
 (0)