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

Improve type check messages for some functions #5251

Merged
merged 2 commits into from Aug 30, 2018

Conversation

takagi
Copy link
Member

@takagi takagi commented Aug 21, 2018

Partially fixes #4969 .

@takagi takagi added the cat:enhancement Implementation that does not break interfaces. label Aug 21, 2018
@takagi
Copy link
Member Author

takagi commented Aug 21, 2018

Jenkins, test this please.

@chainer chainer deleted a comment from chainer-ci Aug 21, 2018
@chainer-ci
Copy link
Member

Jenkins CI test (for commit 75ac4dc, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

@takagi
Copy link
Member Author

takagi commented Aug 27, 2018

Jenkins, test this please.

@chainer-ci
Copy link
Member

Jenkins CI test (for commit 75ac4dc, target branch master) succeeded!

@@ -54,7 +54,7 @@ class SLSTM(function.Function):
"""

def check_type_forward(self, in_types):
type_check.expect(in_types.size() == 4)
type_check.argname(in_types, ('c1', 'c2', 'x1', 'x2'))
Copy link
Member

Choose a reason for hiding this comment

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

Why do not use c_prev1, c_prev2 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed!

@okuta okuta self-assigned this Aug 29, 2018
@okuta okuta added this to the v5.0.0b5 milestone Aug 29, 2018
@okuta
Copy link
Member

okuta commented Aug 30, 2018

LGTM!

@okuta okuta merged commit 31e5aaf into chainer:master Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:enhancement Implementation that does not break interfaces.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve type check error message by assigning variable names
3 participants