You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
torch.nn.functional.avg_pool1d is not working correctly #1249
Thank you for reporting! The discrepancy between PyTorch and TorchSharp is the default value assigned to the stride parameter. I submitted a fix for the next version, but until then you can just specify the stride parameter to be the same as the kernelSize parameter to get the desired results.
Activity
shaltielshmid commentedon Mar 2, 2024
Thank you for reporting! The discrepancy between PyTorch and TorchSharp is the default value assigned to the
strideparameter. I submitted a fix for the next version, but until then you can just specify thestrideparameter to be the same as thekernelSizeparameter to get the desired results.E.g.,
NiklasGustafsson commentedon Mar 5, 2024
Fixed in v0.102.1.