{"action":"created","issue":{"url":"https://api.github.com/repos/uber/horovod/issues/799","repository_url":"https://api.github.com/repos/uber/horovod","labels_url":"https://api.github.com/repos/uber/horovod/issues/799/labels{/name}","comments_url":"https://api.github.com/repos/uber/horovod/issues/799/comments","events_url":"https://api.github.com/repos/uber/horovod/issues/799/events","html_url":"https://github.com/uber/horovod/issues/799","id":404908910,"node_id":"MDU6SXNzdWU0MDQ5MDg5MTA=","number":799,"title":"training GANs with Horovod","user":{"login":"LeanderK","id":2179853,"node_id":"MDQ6VXNlcjIxNzk4NTM=","avatar_url":"https://avatars2.githubusercontent.com/u/2179853?v=4","gravatar_id":"","url":"https://api.github.com/users/LeanderK","html_url":"https://github.com/LeanderK","followers_url":"https://api.github.com/users/LeanderK/followers","following_url":"https://api.github.com/users/LeanderK/following{/other_user}","gists_url":"https://api.github.com/users/LeanderK/gists{/gist_id}","starred_url":"https://api.github.com/users/LeanderK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeanderK/subscriptions","organizations_url":"https://api.github.com/users/LeanderK/orgs","repos_url":"https://api.github.com/users/LeanderK/repos","events_url":"https://api.github.com/users/LeanderK/events{/privacy}","received_events_url":"https://api.github.com/users/LeanderK/received_events","type":"User","site_admin":false},"labels":[{"id":665452437,"node_id":"MDU6TGFiZWw2NjU0NTI0Mzc=","url":"https://api.github.com/repos/uber/horovod/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-01-30T18:41:33Z","updated_at":"2019-02-02T18:56:08Z","closed_at":"2019-02-02T18:56:08Z","author_association":"NONE","body":"Hi, I want to train a GAN using horovod and I wonder whether I can just get different step-counters for the discriminator and generator optimizers (I am using different numbers of steps).\r\n\r\nMy code is (essentially, i can't copy the code since I need to type this on another computer):\r\n\r\n```python\r\ngen_step = tf.tf.train.get_or_create_global_step()\r\ndisc_step = tf.variable(0)\r\ntf.add_to_collection(tf.GraphKeys.GlobalVariables, disc_step)\r\n\r\nsession.run(hvd.broadcast_global_variables(0))\r\n\r\nfor epoch in range(epochs):\r\n    for (idx, batch_img) in enumerate(self.train_batces):\r\n         for _ in range(n_dics):\r\n               (...)\r\n               disc_optimizer.minimize(x,globalstep = disc_step)\r\n         gen_optimizer.minimize(y,globalstep = gen_step)\r\n```\r\n\r\nSince I am still not sure how exactly horovod works, I raise this issue to ask whether the approach is ok or whether it will blow up later (I am still migrating to horovod 😉)"},"comment":{"url":"https://api.github.com/repos/uber/horovod/issues/comments/459989891","html_url":"https://github.com/uber/horovod/issues/799#issuecomment-459989891","issue_url":"https://api.github.com/repos/uber/horovod/issues/799","id":459989891,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1OTk4OTg5MQ==","user":{"login":"LeanderK","id":2179853,"node_id":"MDQ6VXNlcjIxNzk4NTM=","avatar_url":"https://avatars2.githubusercontent.com/u/2179853?v=4","gravatar_id":"","url":"https://api.github.com/users/LeanderK","html_url":"https://github.com/LeanderK","followers_url":"https://api.github.com/users/LeanderK/followers","following_url":"https://api.github.com/users/LeanderK/following{/other_user}","gists_url":"https://api.github.com/users/LeanderK/gists{/gist_id}","starred_url":"https://api.github.com/users/LeanderK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeanderK/subscriptions","organizations_url":"https://api.github.com/users/LeanderK/orgs","repos_url":"https://api.github.com/users/LeanderK/repos","events_url":"https://api.github.com/users/LeanderK/events{/privacy}","received_events_url":"https://api.github.com/users/LeanderK/received_events","type":"User","site_admin":false},"created_at":"2019-02-02T18:56:08Z","updated_at":"2019-02-02T18:56:08Z","author_association":"NONE","body":"seems to work so far, thanks!"}}
{"actor":{"display_login":"LeanderK"}}