MCPcopy Create free account
hub / github.com/apache/tvm-ffi / ObjectPtrHash

Class ObjectPtrHash

include/tvm/ffi/object.h:897–907  ·  view source on GitHub ↗

! \brief ObjectRef hash functor */

Source from the content-addressed store, hash-verified

895
896/*! \brief ObjectRef hash functor */
897struct ObjectPtrHash {
898 size_t operator()(const ObjectRef& a) const { return operator()(a.data_); }
899
900 template <typename T>
901 size_t operator()(const ObjectPtr<T>& a) const {
902 return std::hash<Object*>()(a.get());
903 }
904
905 template <typename... V>
906 TVM_FFI_INLINE size_t operator()(const Variant<V...>& a) const;
907};
908
909/*! \brief ObjectRef equal functor */
910struct ObjectPtrEqual {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68