Calls to _empty_affine_quantized pass MemoryFormat by TensorOptions (#34248)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34248
This argument will no longer exist in positional form when MemoryFormat
is moved into TensorOptions by codegen, so we must stop using it when
we make calls from C++. This diff eliminates all direct positional
calls, making them be passed in using TensorOptions.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Differential Revision: D20683398
Pulled By: bhosmer
fbshipit-source-id: 6928cfca67abb22fbc667ecc2af8453d93489bd6