Pls Help Me With Learning Deep Learning !!!!!!!!!!!

by: Mr.Tech04, 7 years ago


423
Traceback (most recent call last):
  File "Test_model.py", line 81, in <module>
    train_neural_network(x)
  File "Test_model.py", line 56, in train_neural_network
    optimizer = tf.train.AdamOptimizer(learning_rate=0.001).minimize(cost)
  File "C:UsersunboxAppDataLocalProgramsPythonPython35libsite-packagestensorflowpythontrainingoptimizer.py", line 350, in minimize
    ([str(v) for _, v in grads_and_vars], loss))
ValueError: No gradients provided for any variable, check your graph for ops that do not support gradients, between variables ["<tf.Variable 'Variable:0' shape=(423, 1500) dtype=float32_ref>", "<tf.Variable 'Variable_1:0' shape=(1500,) d
type=float32_ref>", "<tf.Variable 'Variable_2:0' shape=(1500, 1500) dtype=float32_ref>", "<tf.Variable 'Variable_3:0' shape=(1500,) dtype=float32_ref>", "<tf.Variable 'Variable_4:0' shape=(1500, 1500) dtype=float32_ref>", "<tf.Variable '
Variable_5:0' shape=(1500,) dtype=float32_ref>", "<tf.Variable 'Variable_6:0' shape=(1500, 2) dtype=float32_ref>", "<tf.Variable 'Variable_7:0' shape=(2,) dtype=float32_ref>"] and loss Tensor("Mean:0", dtype=float32).




Pls help me fix it!!



You must be logged in to post. Please login or register an account.



Why not share this on stackoverflow.

-samuel 7 years ago

You must be logged in to post. Please login or register an account.