JuliaGPU / Adapt.jl

Other
86 stars 24 forks source link

add adapt_structure macro #38

Closed simonbyrne closed 3 years ago

simonbyrne commented 3 years ago

Makes it easier to define adapt methods for large structs. If you're in favour, I can add tests.

cc: @skandalaCLIMA

codecov[bot] commented 3 years ago

Codecov Report

Merging #38 (bfc2eeb) into master (a2f9aa4) will increase coverage by 2.27%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #38      +/-   ##
==========================================
+ Coverage   72.72%   75.00%   +2.27%     
==========================================
  Files           3        4       +1     
  Lines          44       48       +4     
==========================================
+ Hits           32       36       +4     
  Misses         12       12              
Impacted Files Coverage Δ
src/Adapt.jl 100.00% <ø> (ø)
src/macro.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a2f9aa4...bfc2eeb. Read the comment docs.

simonbyrne commented 3 years ago

I've added tests, let me know what you think.