Betriebsumgebung
Ubuntu 14.04 LTS desktop amd64
GeForce GTX 750 Ti
ASRock Z170M Pro4S [Intel Z170chipset]
TensorFlow v0.11
cuDNN v5.1 for Linux
CUDA v7.5
Python 2.7.6
Ich lerne Python-Code für Deep Learning-bezogene Dinge namens TensorFlow. https://www.tensorflow.org/versions/master/tutorials/mnist/tf/index.html#tensorflow-mechanics-101
flags.DEFINE_string('train_dir', 'data', 'Directory to put the training data.')
...
checkpoint_file = os.path.join(FLAGS.train_dir, 'checkpoint')
Ich habe das oben genannte mit ideone umgesetzt.
http://ideone.com/v9DXUH
# your code goes here
import os.path
train_dir = 'data'
print train_dir
train_file = 'checkpoint'
print train_file
train_path = os.path.join(train_dir, train_file)
print train_path
Ergebnis
Success time: 0.01 memory: 9024 signal:0
data
checkpoint
data/checkpoint
Es scheint, dass /
automatisch hinzugefügt wird.
Recommended Posts