Fix and test conv2d constructor and from_float
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/24277
Test Plan: Imported from OSS
Differential Revision: D16793043
Pulled By: jamesr66a
fbshipit-source-id: bbf74c87aa11adfe15e31ea8190e7542b8127c65