-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Added an elementary unit test for CSP #8340
Conversation
|
||
|
||
class TestCSPFramework(unittest.TestCase): | ||
def helper(self, left, right): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function has only one line; why make it a function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I am sure that here we should not need to define the helper function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in latest commit
import paddle.v2.fluid as fluid | ||
|
||
|
||
class TestCSPFramework(unittest.TestCase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we make sure that this unit test doesn't break the CI before we finish the implementation of CSP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wangkuiyi I made sure that this PR doesn't break the CI. Both TeamCity and Travis pass.
@abhinavarora and I designed this unit test for the proposed imperative programming paradigm in https://github.com/PaddlePaddle/Paddle/blob/develop/doc/design/csp.md .
This is a unit test that implements the Daisy Chain as explained here: https://talks.golang.org/2012/concurrency.slide#39 using the concepts of concurrent programming in Fluid.
Fix #8338