-
Notifications
You must be signed in to change notification settings - Fork 62
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
Deprecate One()
#357
Deprecate One()
#357
Conversation
Codecov Report
@@ Coverage Diff @@
## master #357 +/- ##
==========================================
- Coverage 90.03% 86.64% -3.40%
==========================================
Files 14 13 -1
Lines 542 539 -3
==========================================
- Hits 488 467 -21
- Misses 54 72 +18
Continue to review full report at Codecov.
|
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.
confused by one test, but otherwise LGTM
sy = @SVector [3, 4] | ||
|
||
# Test that @scalar_rule and `One()` play nice together, w.r.t broadcasting | ||
@inferred frule((ZeroTangent(), sx, sy), very_nice, 1, 2) |
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.
what is this testing? it doesn't appear to be using One
anywhere
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 think it is testing that One() * sx
is type stable?
@@ -116,11 +116,11 @@ _second(t) = Base.tuple_type_head(Base.tuple_type_tail(t)) | |||
|
|||
@test frule((nothing, nothing, 5.0), Core._apply, dummy_identity, 4.0) == (4.0, 5.0) | |||
|
|||
@testset "broadcasting One" begin | |||
@testset "broadcasting true" begin |
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.
How does this name and comments relate to the @inferred
test here?
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.
Maybe we don't need this test anymore?
Lets add a comment specificially about |
Done, please suggest a rephrasing if you think it's unclear. Also, could you please check this thread? #357 (comment) |
Co-authored-by: Lyndon White <oxinabox@ucc.asn.au>
First step towards #354