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

Scope self arguments using let block syntax #17

Merged
merged 9 commits into from
Aug 21, 2023

Conversation

gaurav-arya
Copy link
Contributor

@gaurav-arya gaurav-arya commented Aug 20, 2023

This PR is on top of #16 to avoid merge conflcits, but the only changes are f1aeaf3 and c1f6605

@codecov-commenter
Copy link

codecov-commenter commented Aug 20, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +1.26% 🎉

Comparison is base (9dcae27) 78.64% compared to head (9ab4b87) 79.90%.

❗ Current head 9ab4b87 differs from pull request most recent head 6da9002. Consider uploading reports for the commit 6da9002 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #17      +/-   ##
==========================================
+ Coverage   78.64%   79.90%   +1.26%     
==========================================
  Files           6        6              
  Lines         206      219      +13     
==========================================
+ Hits          162      175      +13     
  Misses         44       44              
Files Changed Coverage Δ
src/compact.jl 93.40% <100.00%> (+1.09%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mcabbott mcabbott left a comment

Choose a reason for hiding this comment

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

This basically seems fine to me. Nicely seen, I only thought of the syntax transformation.

I think this shouldn't break any cases which now work.

test/compact.jl Show resolved Hide resolved
src/compact.jl Outdated Show resolved Hide resolved
src/compact.jl Outdated Show resolved Hide resolved
src/compact.jl Outdated Show resolved Hide resolved
test/compact.jl Outdated Show resolved Hide resolved
src/compact.jl Outdated Show resolved Hide resolved
@MilesCranmer
Copy link
Contributor

Btw, can we remove the outer let .. end block in the macro output?

return esc(quote
let
$CompactLayer($fex, $name, ($layer, $input, $block), $setup; $(kwexs...))
end
end)

This was only needed when we were doing the variable assignments with it, right? Or does it still serve a purpose?

src/compact.jl Outdated Show resolved Hide resolved
@gaurav-arya
Copy link
Contributor Author

Comments should be addressed now 🙂

src/compact.jl Outdated Show resolved Hide resolved
Co-authored-by: Michael Abbott <32575566+mcabbott@users.noreply.github.com>
@mcabbott mcabbott merged commit cc0e36f into FluxML:master Aug 21, 2023
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.

4 participants