[JIT] fix freezing with mkldnn tensors (#54632)
Summary:
We were accessing their storage which will throw
Pull Request resolved: https://github.com/pytorch/pytorch/pull/54632
Reviewed By: ezyang
Differential Revision: D27372192
Pulled By: eellison
fbshipit-source-id: 9985e85af7a35a3d6bf1c0be0185699c34877b94