SullyChen / Autopilot-TensorFlow

A TensorFlow implementation of this Nvidia paper: https://arxiv.org/pdf/1604.07316.pdf with some changes
MIT License
1.25k stars 425 forks source link

tensorflow error... #21

Closed yghcats closed 5 years ago

yghcats commented 7 years ago

Hi, which version of tensorflow do you use?

My tensorflow is version 0.8

Error occurred: Traceback (most recent call last): File "train.py", line 5, in import model File "/home/gtx-140601/Autopilot-TensorFlow-master/model.py", line 88, in y = tf.mul(tf.atan(tf.matmul(h_fc4_drop, W_fc5) + b_fc5), 2) #scale the atan output AttributeError: 'module' object has no attribute 'atan'

15751064254 commented 7 years ago

tf.mul, tf.sub and tf.neg are deprecated in favor of tf.multiply, tf.subtract and tf.negative. Breaking Changes to the API

Modify this y = tf.multiply(tf.atan(tf.matmul(h_fc4_drop, W_fc5) + b_fc5), 2)