mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
Facebook Github Bot
parent
d825b39061
commit
ca7f8fed60
@ -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(); }
|
||||
|
Reference in New Issue
Block a user