diff options
author | Pavel Belevich <pbelevich@fb.com> | 2021-09-20 21:52:34 -0700 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2021-09-20 22:50:28 -0700 |
commit | 5826d207ad01f588833459b0c5f4fd05f765c276 (patch) | |
tree | a294392f885936145b2046e7e1a9287244c0374b | |
parent | 19a10638881c56b022353e8c0c65ccf7b0c98de6 (diff) | |
download | pytorch-5826d207ad01f588833459b0c5f4fd05f765c276.tar.gz pytorch-5826d207ad01f588833459b0c5f4fd05f765c276.tar.bz2 pytorch-5826d207ad01f588833459b0c5f4fd05f765c276.zip |
[JIT] Delete obsolete message: or if you absolutely have to, use c10::impl::GenericDict(c10::impl::deprecatedUntypedDict()) (#65164)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65164
Looks like it was forgotten in https://github.com/pytorch/pytorch/pull/25439
Test Plan: Imported from OSS
Reviewed By: malfet
Differential Revision: D31072625
Pulled By: pbelevich
fbshipit-source-id: a5ffcfb0836f962ab6952a187ba7717c4d4a6e33
-rw-r--r-- | aten/src/ATen/core/Dict_inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aten/src/ATen/core/Dict_inl.h b/aten/src/ATen/core/Dict_inl.h index a215d94cb2..d4509b9595 100644 --- a/aten/src/ATen/core/Dict_inl.h +++ b/aten/src/ATen/core/Dict_inl.h @@ -69,8 +69,8 @@ Dict<Key, Value>::Dict() :Dict(make_intrusive<detail::DictImpl>( detail::DictImpl::dict_map_type(), detail::DictImpl::DictElementTypes{getTypePtr<Key>(), getTypePtr<Value>()})) { - static_assert(!std::is_same<Key, IValue>::value, "This constructor is not valid for Dict<IValue, _>. Please use c10::impl::GenericDict(keyType, valueType) instead, or if you absolutely have to, use c10::impl::GenericDict(c10::impl::deprecatedUntypedDict())."); - static_assert(!std::is_same<Value, IValue>::value, "This constructor is not valid for Dict<_, IValue>. Please use c10::impl::GenericDict(keyType, valueType) instead, or if you absolutely have to, use c10::impl::GenericDict(c10::impl::deprecatedUntypedDict())."); + static_assert(!std::is_same<Key, IValue>::value, "This constructor is not valid for Dict<IValue, _>. Please use c10::impl::GenericDict(keyType, valueType) instead."); + static_assert(!std::is_same<Value, IValue>::value, "This constructor is not valid for Dict<_, IValue>. Please use c10::impl::GenericDict(keyType, valueType) instead."); } template<class Key, class Value> |