Fix TensorProtosDBInput AttributeError (#32274)
Summary:
https://github.com/pytorch/pytorch/issues/6794
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32274
Differential Revision: D19621889
Pulled By: ezyang
fbshipit-source-id: 1bdd042b6421a2798c7f1e9030dfc6dfc1246989