Closed
Description
The stride should default to the kernel size.
F# repro:
type F = torch.nn.functional
let x = torch.zeros([|1L; 6L; 28L; 28L|])
let bad = F.max_pool2d(x, [|2L; 2L|])
printfn "%A" bad.shape // incorrect: [|1L; 6L; 27L; 27L|]
let good = F.max_pool2d(x, struct (2L, 2L))
printfn "%A" good.shape // correct: [|1L; 6L; 14L; 14L|]
For bonus points, it would be nice if there was another overload that accepted a plain F# tuple instead.
Metadata
Metadata
Assignees
Labels
No labels