tf.nn.relu(features, name=None)
就算修正的线性:max(features, 0)
#!/user/bin/env python
# coding=utf-8
import tensorflow as tf
w=tf.Variable([[1.0,2.0,-0.5],[-0.9,0.1,1.2]])
w_nn=tf.nn.relu(w)
init=tf.initialize_all_variables()
sess=tf.Session()
sess.run(init)
print sess.run(w_nn)
sess.close()