silence unreachable code warnings (#15036)

Summary:
Stack:
      **#15036 silence unreachable code warnings**  [💛](https://our.intern.facebook.com/intern/diff/D13411100/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15036

Differential Revision: D13414712

Pulled By: li-roy

fbshipit-source-id: d4aa84571fa94c66f3c5bfa9575a10c6ee398f9e
This commit is contained in:
Roy Li
2018-12-11 13:06:11 -08:00
committed by Facebook Github Bot
parent d825b39061
commit ca7f8fed60

View File

@ -901,7 +901,6 @@ TypePtr getTypePtr() {
" could not be converted to any of the known types { ",
C10_FORALL_TYPES(TYPE_STR) "}");
#undef TYPE_STR
return nullptr;
}
template<> inline TypePtr getTypePtr<at::Tensor>() { return DynamicType::get(); }