Skip to content

Conversation

lkdvos
Copy link
Member

@lkdvos lkdvos commented Sep 7, 2023

This pull request simplifies some implementations that are checking for dynamic zeros/ones, in favor of only special-casing the statically known ones and letting the compiler const-propagate the rest.

@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Merging #146 (b8221e6) into master (a58aac1) will increase coverage by 0.37%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #146      +/-   ##
==========================================
+ Coverage   81.17%   81.55%   +0.37%     
==========================================
  Files          25       25              
  Lines        2189     2152      -37     
==========================================
- Hits         1777     1755      -22     
+ Misses        412      397      -15     
Files Changed Coverage Δ
ext/TensorOperationscuTENSORExt.jl 0.00% <ø> (ø)
src/implementation/abstractarray.jl 100.00% <ø> (ø)
ext/TensorOperationsChainRulesCoreExt.jl 100.00% <100.00%> (ø)
src/TensorOperations.jl 100.00% <100.00%> (ø)
src/implementation/diagonal.jl 100.00% <100.00%> (ø)
src/implementation/strided.jl 97.10% <100.00%> (+7.16%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@lkdvos lkdvos changed the title Simplify strided implementations Refactor branching on α and β Sep 12, 2023
@Jutho
Copy link
Member

Jutho commented Sep 12, 2023

Looks great. Should we try to resolve the type piracy and update StridedViews.jl (I would put it there rather than in Strided.jl)? Or do we leave that for another time?

@lkdvos lkdvos force-pushed the dynamic-zeros branch 2 times, most recently from 9185608 to ee58074 Compare September 12, 2023 12:01
@lkdvos lkdvos merged commit fc245aa into master Sep 13, 2023
@lkdvos lkdvos deleted the dynamic-zeros branch September 13, 2023 09:39
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.

2 participants