8000 feature/avgpool - avgpool1d, avgpool2d, avgpool3d by dsyme · Pull Request #252 · DiffSharp/DiffSharp · GitHub
[go: up one dir, main page]

Skip to content

feature/avgpool - avgpool1d, avgpool2d, avgpool3d #252

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

Merged
merged 4 commits into from
Jul 26, 2021
Merged

Conversation

dsyme
Copy link
Collaborator
@dsyme dsyme commented Nov 25, 2020

Adds avgpool support

@gbaydin this uses the updated #89 to stop polluting Tensor,fs, and to have DiffSharp.AvgPool.fs extend all the necessary API surfacings all at once

@dsyme
Copy link
Collaborator Author
dsyme commented Nov 26, 2020

@gbaydin This is ready - testing for tensors and derivatives have been added

The reverse mode derivatives have been checked against python. I've forgotten the python for checking the forward mode derivatives but I've pinned them down (and the forward mode implementations are trivial of course)

@dsyme dsyme mentioned this pull request Nov 26, 2020
22 tasks
@dsyme dsyme closed this Nov 26, 2020
@dsyme dsyme reopened this Nov 26, 2020
@dsyme dsyme closed this Nov 26, 2020
@dsyme dsyme reopened this Nov 26, 2020
@dsyme dsyme closed this Nov 26, 2020
@dsyme dsyme reopened this Nov 26, 2020
@dsyme
Copy link
Collaborator Author
dsyme commented Nov 26, 2020

close/reopen to trigger CI

@codecov
Copy link
codecov bot commented Nov 26, 2020

Codecov Report

Merging #252 (d2e7a33) into dev (0ed6f78) will decrease coverage by 0.79%.
The diff coverage is 60.82%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #252      +/-   ##
==========================================
- Coverage   66.01%   65.22%   -0.79%     
==========================================
  Files           5       30      +25     
  Lines        2401     6849    +4448     
  Branches      641     1668    +1027     
==========================================
+ Hits         1585     4467    +2882     
- Misses        520     1526    +1006     
- Partials      296      856     +560     
Impacted Files Coverage Δ
src/DiffSharp.Core/RawTensor.fs 85.62% <ø> (ø)
src/DiffSharp.Core/Tensor.fs 63.21% <ø> (ø)
...iffSharp.Backends.Reference/Reference.RawTensor.fs 58.75% <40.62%> (-0.92%) ⬇️
src/DiffSharp.Backends.Torch/Torch.RawTensor.fs 79.34% <69.70%> (+0.09%) ⬆️
src/DiffSharp.Core/DiffSharp.AvgPool.fs 83.93% <83.93%> (ø)
src/DiffSharp.Core/Shape.fs 57.87% <100.00%> (ø)
src/DiffSharp.Data/Image.fs 76.92% <0.00%> (-0.85%) ⬇️
src/DiffSharp.Data/Data.fs 69.41% <0.00%> (-0.65%) ⬇️
src/DiffSharp.Data/Plot.fs 0.00% <0.00%> (ø)
src/DiffSharp.Core/Util.fs 64.77% <0.00%> (ø)
... and 26 more

@dsyme dsyme mentioned this pull request Nov 28, 2020
@dsyme dsyme changed the title Feature/avgpool - avgpool1d, avgpool2d, avgpool3d feature/avgpool - avgpool1d, avgpool2d, avgpool3d Nov 28, 2020
@dsyme dsyme mentioned this pull request Mar 31, 2021
@dsyme dsyme force-pushed the feature/avgpool branch from 6156aa6 to 47c405e Compare April 14, 2021 14:52
@dsyme dsyme changed the base branch from feature/extension-ops to dev April 14, 2021 14:54
@dsyme
Copy link
Collaborator Author
dsyme commented Apr 14, 2021

@gbaydin I've rebased this so it now uses the new extension API

It should be ready to go in once green

@gbaydin
Copy link
Member 9C79
gbaydin commented Jul 26, 2021

I checked everything carefully and this is good to go!

@gbaydin gbaydin merged commit 64d540b into dev Jul 26, 2021
@dsyme
Copy link
Collaborator Author
dsyme commented Jul 26, 2021

Thanks!

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
0