infer tensor properties based on an input tensor rather than defaults for xxx_like ctors (#40895)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/40895
Reviewed By: eellison
Differential Revision: D22358878
Pulled By: Krovatkin
fbshipit-source-id: 2db2429aa89c180d8e52a6bb1265308483da46a2