{"action":"closed","issue":{"url":"https://api.github.com/repos/ftramer/ensemble-adv-training/issues/2","repository_url":"https://api.github.com/repos/ftramer/ensemble-adv-training","labels_url":"https://api.github.com/repos/ftramer/ensemble-adv-training/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ftramer/ensemble-adv-training/issues/2/comments","events_url":"https://api.github.com/repos/ftramer/ensemble-adv-training/issues/2/events","html_url":"https://github.com/ftramer/ensemble-adv-training/issues/2","id":300745294,"number":2,"title":"how to save the problem of \"No gradients provided for any variable\"","user":{"login":"badchild0912","id":5791772,"avatar_url":"https://avatars3.githubusercontent.com/u/5791772?v=4","gravatar_id":"","url":"https://api.github.com/users/badchild0912","html_url":"https://github.com/badchild0912","followers_url":"https://api.github.com/users/badchild0912/followers","following_url":"https://api.github.com/users/badchild0912/following{/other_user}","gists_url":"https://api.github.com/users/badchild0912/gists{/gist_id}","starred_url":"https://api.github.com/users/badchild0912/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badchild0912/subscriptions","organizations_url":"https://api.github.com/users/badchild0912/orgs","repos_url":"https://api.github.com/users/badchild0912/repos","events_url":"https://api.github.com/users/badchild0912/events{/privacy}","received_events_url":"https://api.github.com/users/badchild0912/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-27T18:37:01Z","updated_at":"2018-02-28T09:02:20Z","closed_at":"2018-02-28T09:02:20Z","author_association":"NONE","body":"I try to run the code, but I always have the same problem:\r\n\r\nIs there someone know how to solve this problem?\r\n\r\n```\r\ntensorflow/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\r\n  from ._conv import register_converters as _register_converters\r\nUsing TensorFlow backend.\r\n('X_train shape:', (60000, 28, 28, 1))\r\n(60000, 'train samples')\r\n(10000, 'test samples')\r\nLoaded MNIST test data.\r\nTraceback (most recent call last):\r\n  File \"/anaconda2/envs/tensorflow/lib/python2.7/runpy.py\", line 174, in _run_module_as_main\r\n    \"__main__\", fname, loader, pkg_name)\r\n  File \"/anaconda2/envs/tensorflow/lib/python2.7/runpy.py\", line 72, in _run_code\r\n    exec code in run_globals\r\n  File \"/DeepLearning/ensemble-adv-training/train.py\", line 57, in <module>\r\n    main(args.model, args.type)\r\n  File \"/DeepLearning/ensemble-adv-training/train.py\", line 39, in main\r\n    tf_train(x, y, model, X_train, Y_train, data_gen)\r\n  File \"tf_utils.py\", line 79, in tf_train\r\n    optimizer = tf.train.AdamOptimizer().minimize(loss)\r\n  File \"/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/training/optimizer.py\", line 350, in minimize\r\n    ([str(v) for _, v in grads_and_vars], loss))\r\nValueError: No gradients provided for any variable, check your graph for ops that do not support gradients, between variables [\"<tf.Variable 'conv2d_1/kernel:0' shape=(5, 5, 1, 64) dtype=float32_ref>\", \"<tf.Variable 'conv2d_1/bias:0' shape=(64,) dtype=float32_ref>\", \"<tf.Variable 'conv2d_2/kernel:0' shape=(5, 5, 64, 64) dtype=float32_ref>\", \"<tf.Variable 'conv2d_2/bias:0' shape=(64,) dtype=float32_ref>\", \"<tf.Variable 'dense_1/kernel:0' shape=(25600, 128) dtype=float32_ref>\", \"<tf.Variable 'dense_1/bias:0' shape=(128,) dtype=float32_ref>\", \"<tf.Variable 'dense_2/kernel:0' shape=(128, 10) dtype=float32_ref>\", \"<tf.Variable 'dense_2/bias:0' shape=(10,) dtype=float32_ref>\"] and loss Tensor(\"Mean:0\", shape=(), dtype=float32).\r\n\r\n```"}}
{"actor":{"display_login":"badchild0912"}}