Move ConvParams methods directly on struct (#89062)
This reduces boilerplate. Also, I plan to add a template
parameter to ConvParams; without moving the methods onto the
struct, I would have to manually template every method.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89062
Approved by: https://github.com/SherlockNoMad