aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples/get_started
diff options
context:
space:
mode:
authorGravatar Yifei Feng <yifeif@google.com>2018-02-22 14:24:57 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-02-22 14:29:27 -0800
commitdce9a49c19f406ba45919e8c94474e55dc5ccd54 (patch)
tree928db8a52603e00aef76985cda16b8bceb9debb2 /tensorflow/examples/get_started
parentcb7e1963c625fd9713e7475d85621f95be6762f1 (diff)
Merge changes from github.
PiperOrigin-RevId: 186674197
Diffstat (limited to 'tensorflow/examples/get_started')
-rw-r--r--tensorflow/examples/get_started/regression/imports85.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tensorflow/examples/get_started/regression/imports85.py b/tensorflow/examples/get_started/regression/imports85.py
index 6bee556eb8..4fdaceea9a 100644
--- a/tensorflow/examples/get_started/regression/imports85.py
+++ b/tensorflow/examples/get_started/regression/imports85.py
@@ -131,11 +131,12 @@ def dataset(y_name="price", train_fraction=0.7):
# booleans but we are dealing with symbolic tensors.
return ~in_training_set(line)
- base_dataset = (tf.contrib.data
- # Get the lines from the file.
- .TextLineDataset(path)
- # drop lines with question marks.
- .filter(has_no_question_marks))
+ base_dataset = (
+ tf.data
+ # Get the lines from the file.
+ .TextLineDataset(path)
+ # drop lines with question marks.
+ .filter(has_no_question_marks))
train = (base_dataset
# Take only the training-set lines.