Skip to content

Commit

Permalink
Work around "import tensorflow.train" bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Oct 12, 2019
1 parent 531c74c commit 794a0d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions 13_loading_and_preprocessing_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@
"metadata": {},
"outputs": [],
"source": [
"# WARNING: there's currently a bug preventing \"from tensorflow.train\"\n",
"# WARNING: there's currently a bug preventing \"from tensorflow.train import X\"\n",
"# so we work around it by writing \"X = tf.train.X\"\n",
"#from tensorflow.train import BytesList, FloatList, Int64List\n",
"#from tensorflow.train import Feature, Features, Example\n",
Expand Down Expand Up @@ -1908,7 +1908,12 @@
"metadata": {},
"outputs": [],
"source": [
"from tensorflow.train import FeatureList, FeatureLists, SequenceExample\n",
"# WARNING: there's currently a bug preventing \"from tensorflow.train import X\"\n",
"# so we work around it by writing \"X = tf.train.X\"\n",
"#from tensorflow.train import FeatureList, FeatureLists, SequenceExample\n",
"FeatureList = tf.train.FeatureList\n",
"FeatureLists = tf.train.FeatureLists\n",
"SequenceExample = tf.train.SequenceExample\n",
"\n",
"context = Features(feature={\n",
" \"author_id\": Feature(int64_list=Int64List(value=[123])),\n",
Expand Down

0 comments on commit 794a0d8

Please sign in to comment.