Delete dead is_named_tensor_only (#42672)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42672
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Reviewed By: zou3519
Differential Revision: D22978389
Pulled By: ezyang
fbshipit-source-id: ef1302c57fe26a58a46ca1f4a4a7c3e2cdbfdc5d