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

Try add unittest for sgd local updater #880

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Dec 14, 2016

在 PR #204 里,会在某些情况下使用enableType创建gradient buffer。不过我并没有复现在什么情况下必须要创建这个buffer。

因为要将全局变量去掉,所以这里的逻辑需要修改,但我看目前的单测似乎并没有覆盖到这块逻辑。即使把这块代码删除后,单测还是完全正确的。我尝试着按照说明加了一些单测,结果还是正确的。

@reyoung reyoung requested a review from emailweixu December 14, 2016 07:11
@reyoung reyoung force-pushed the feature/add_unittest_for_sgd_local_updater branch from 4dceace to cbddad3 Compare December 14, 2016 08:53
@reyoung
Copy link
Collaborator Author

reyoung commented Dec 15, 2016

Use #915 to coverage this unittest.

@reyoung reyoung closed this Dec 15, 2016
@reyoung reyoung deleted the feature/add_unittest_for_sgd_local_updater branch January 18, 2017 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant