Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Support hit rate on ds #244

Merged
merged 19 commits into from
Jul 19, 2022
Merged

[Feat] Support hit rate on ds #244

merged 19 commits into from
Jul 19, 2022

Conversation

dawn310826
Copy link
Collaborator

No description provided.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@dawn310826 dawn310826 changed the title Support hit rate on ds [Feat] Support hit rate on ds Jul 18, 2022
@github-actions
Copy link

CI Test Passed

@github-actions github-actions bot added the ci_test_passed ci test passed label Jul 18, 2022
@github-actions
Copy link

CI Test Passed

@github-actions github-actions bot added ci_test_passed ci test passed and removed ci_test_passed ci test passed labels Jul 18, 2022
@github-actions
Copy link

CI PY3 Test Passed

tf.train.replica_device_setter(
worker_device='/job:worker/task:%d' % task_index, cluster=cluster)):
with tf.variable_scope('hitrate_var', reuse=tf.AUTO_REUSE):
var_worker_count = tf.get_variable(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些参数的变量是不是放在了各自的 worker 上,没有放在 ps 上

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的

outs = sess.run([var_total_hitrate, var_worker_count])

# write after all workers have completed the calculation of hitrate.
if outs[1] == worker_count:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个结果是只保存了单个 worker 的结果吗

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outs[0]是全局聚合后最终的hitrate,outs[1]是worker数

@github-actions
Copy link

CI PY3 Test Passed

@github-actions
Copy link

CI PY3 Test Passed

@github-actions
Copy link

CI Test Failed

@github-actions github-actions bot added ci_test_failed and removed ci_test_passed ci test passed labels Jul 19, 2022
@github-actions
Copy link

CI Test Passed

@github-actions github-actions bot added ci_test_passed ci test passed and removed ci_test_failed labels Jul 19, 2022
@dawn310826 dawn310826 merged commit 789704a into master Jul 19, 2022
@dawn310826 dawn310826 deleted the support_gnn_on_ds branch July 19, 2022 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci_test_passed ci test passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants