通常在Python中,默认文件夹应该是我假设的当前工作目录,或者可能是默认用户目录。但是,在运行以下代码from here之后,我在前面的任何一个地方都找不到下载的数据。所以问题是相对路径/tmp/tensorflow/mnist/input_data在哪里?谢谢!在from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import sys
from tensorflow.examples.tutorials.mnist import input_data
import tensorflow as tf
FLAGS = None
def main(_):
# Import data
mnist = input_data.read_data_sets(FLAGS.data_dir, one_hot=True)
# Create the model
x = tf.placeholder(tf.float32, [None, 784])
W = tf.Variable(tf.zeros([784, 10]))
b = tf.Variable(tf.zeros([10]))
y = tf.matmul(x, W) + b
# Define loss and optimizer
y_ = tf.placeholder(tf.float32, [None, 10])
# The raw formulation of cross-entropy,<