Skip to content

Commit 6c48755

Browse files
authored
[Metadata] Include picojson rather than forward declaring (#2118)
This PR fixes the picojson uses in MLC that conflicts with the latest changes on the picojson side.
1 parent 716a5ed commit 6c48755

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cpp/metadata/model.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,14 @@
55
#ifndef MLC_LLM_CPP_MODEL_METADATA_H_
66
#define MLC_LLM_CPP_MODEL_METADATA_H_
77

8+
#include <picojson.h>
89
#include <tvm/runtime/container/shape_tuple.h>
910
#include <tvm/runtime/container/string.h>
1011
#include <tvm/runtime/data_type.h>
1112
#include <tvm/runtime/module.h>
1213

1314
#include <unordered_map>
1415

15-
// Forward declare picojson's value, object and array
16-
namespace picojson {
17-
class value;
18-
using object = std::unordered_map<std::string, value>;
19-
using array = std::vector<value>;
20-
} // namespace picojson
21-
2216
namespace mlc {
2317
namespace llm {
2418

0 commit comments

Comments
 (0)