Disable inlining an opaque tensor into a constant (#40367)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40367
If the tensor has no storage then do not inline as a constant. This
situation when Mkldnn tensors are used.
Test Plan: Imported from OSS
Reviewed By: eellison
Differential Revision: D22158240
Pulled By: bzinodev
fbshipit-source-id: 8d2879044f2429004983a1242d837367b75a9f2a