From 3ff9c8d2af2ede9ee7c16fb3b15d004e423f95e5 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 27 Oct 2017 16:36:18 -0700 Subject: [PATCH] Fix typos in Linear Model Tutorial samples 1. test_file_name is undefined (should be test_file.name) 2. train_file_name is undefined (should be train_file.name) PiperOrigin-RevId: 173733442 --- tensorflow/docs_src/tutorials/wide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/docs_src/tutorials/wide.md b/tensorflow/docs_src/tutorials/wide.md index 6292c1a01e4..ba16e12a723 100644 --- a/tensorflow/docs_src/tutorials/wide.md +++ b/tensorflow/docs_src/tutorials/wide.md @@ -383,7 +383,7 @@ API: ```python # set num_epochs to None to get infinite stream of data. m.train( - input_fn=input_fn(train_file_name, num_epochs=None, shuffle=True), + input_fn=input_fn(train_file.name, num_epochs=None, shuffle=True), steps=train_steps) ``` @@ -392,7 +392,7 @@ the labels of the holdout data: ```python results = m.evaluate( - input_fn=input_fn(test_file_name, num_epochs=1, shuffle=False), + input_fn=input_fn(test_file.name, num_epochs=1, shuffle=False), steps=None) print("model directory = %s" % model_dir) for key in sorted(results):