Home
last modified time | relevance | path

Searched refs:m_tpIndex (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/mindspore/core/utils/
Dany.h43 Any() : m_ptr(nullptr), m_tpIndex(std::type_index(typeid(void))) {} in Any()
44 Any(const Any &other) : m_ptr(other.clone()), m_tpIndex(other.m_tpIndex) {} in Any()
45 Any(Any &&other) : m_ptr(std::move(other.m_ptr)), m_tpIndex(std::move(other.m_tpIndex)) {} in Any()
50 Any(T &&t) : m_tpIndex(typeid(typename std::decay<T>::type)) { // NOLINT in Any()
63 return m_tpIndex == std::type_index(typeid(T)); in is()
70 buffer << m_tpIndex.name(); in Hash()
105 MS_LOG(EXCEPTION) << "can not cast " << m_tpIndex.name() << " to " << typeid(T).name(); in cast()
112 if (m_tpIndex != other.m_tpIndex) {
132 if (m_tpIndex == typeid(float)) { in ToString()
134 } else if (m_tpIndex == typeid(double)) { in ToString()
[all …]
Dany.cc39 m_tpIndex = other.m_tpIndex; in operator =()
52 m_tpIndex = std::move(other.m_tpIndex); in operator =()