Treelite
|
Reference serializer implementation, which serializes to JSON. This is useful for testing correctness of the binary serializer. More...
#include <treelite/tree.h>
#include <treelite/logging.h>
#include <rapidjson/ostreamwrapper.h>
#include <rapidjson/writer.h>
#include <ostream>
#include <cstdint>
#include <cstddef>
Go to the source code of this file.
Functions | |
template<typename WriterType , typename ThresholdType , typename LeafOutputType > | |
void | SerializeTreeToJSON (WriterType &writer, const Tree< ThresholdType, LeafOutputType > &tree) |
Reference serializer implementation, which serializes to JSON. This is useful for testing correctness of the binary serializer.
Copyright (c) 2020-2021 by Contributors
Definition in file json_serializer.cc.