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 typestability. #53

Merged
merged 2 commits into from
Jul 25, 2022
Merged

Improve typestability. #53

merged 2 commits into from
Jul 25, 2022

Conversation

N5N3
Copy link
Contributor

@N5N3 N5N3 commented Jul 12, 2022

  1. replace x->adapt(to,x) with AdaptTo(to) to avoid type inference problem with captured type in closures JuliaLang/julia#23618. (We have adaptor <: Type, e.g. Array)
  2. use PermutedDimsArray's inner constructor to avoid PermutedDimsArray's outer constructor fails to const-propagate  JuliaLang/julia#46008

src/base.jl Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 25, 2022

Codecov Report

Merging #53 (656841b) into master (d9f852a) will increase coverage by 2.64%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #53      +/-   ##
==========================================
+ Coverage   81.48%   84.12%   +2.64%     
==========================================
  Files           5        5              
  Lines          54       63       +9     
==========================================
+ Hits           44       53       +9     
  Misses         10       10              
Impacted Files Coverage Δ
src/Adapt.jl 100.00% <100.00%> (ø)
src/base.jl 90.90% <100.00%> (ø)
src/wrappers.jl 75.00% <100.00%> (+3.12%) ⬆️

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 d9f852a...656841b. Read the comment docs.

@maleadt maleadt merged commit d1dde1b into JuliaGPU:master Jul 25, 2022
@maleadt
Copy link
Member

maleadt commented Jul 25, 2022

Thanks!

@N5N3 N5N3 deleted the stable branch July 25, 2022 12:32
@mcabbott
Copy link

Would it be possible to make a release with this method in it?

@maleadt
Copy link
Member

maleadt commented Jul 28, 2022

Sure. Just tagged 3.4

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.

3 participants