Operating environment
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
IPython 5.1.0 -- An enhanced Interactive Python.
In the past I wrote about line concatenation in several languages. http://qiita.com/7of9/items/021bb0fa9443c2efc44b
A framework for deep learning called TensorFlow? I found the following code in the code mnist_with_summaries.py.
with tf.name_scope('train'):
train_step = tf.train.AdamOptimizer(FLAGS.learning_rate).minimize(
cross_entropy)
It seems that there is no need for line concatenation symbols.
In the case of concatenating character strings, it is introduced at the following link. [[Python] I want to write a string on multiple lines @ memlog](http://blog.taikomatsu.com/2008/10/08/python%E6%96%87%E5%AD%97%E5 % 88% 97% E3% 82% 92% E8% A4% 87% E6% 95% B0% E8% A1% 8C% E3% 81% AB% E5% 88% 86% E3% 81% 91% E3% 81 % A6% E6% 9B% B8% E3% 81% 8D% E3% 81% 9F% E3% 81% 84 / comment-page-1 /)
http://ideone.com/n5Rim5
def func_print(var):
print var
var = 3.14
func_print(var)
func_print(
var)
It may be conditional on "for function arguments".
Recommended Posts