Skip to content

Commit 2b9a03d

Browse files
authored
[Fix] Remove the type index defined for RadixTree and PrefixCache (#3161)
This PR removes the `type_index` for `PrefixCache` and `PagedRadixTree`. The type index may case import error.
1 parent 82b7c82 commit 2b9a03d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

cpp/serve/prefix_cache.h

-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ class PrefixCacheObj : public Object {
123123
/*! \brief Return the prefix cache mode. */
124124
virtual PrefixCacheMode Mode() = 0;
125125

126-
static constexpr const uint32_t _type_index = TypeIndex::kDynamic;
127126
static constexpr const char* _type_key = "mlc.serve.PrefixCache";
128127
TVM_DECLARE_BASE_OBJECT_INFO(PrefixCacheObj, Object)
129128
};

cpp/serve/radix_tree.h

-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ class PagedRadixTreeObj : public Object {
106106
*/
107107
virtual void Reset() = 0;
108108

109-
static constexpr const uint32_t _type_index = TypeIndex::kDynamic;
110109
static constexpr const char* _type_key = "mlc.serve.PagedRadixTree";
111110
TVM_DECLARE_BASE_OBJECT_INFO(PagedRadixTreeObj, Object)
112111
};

0 commit comments

Comments
 (0)