mxnet
|
Serialization of some STL and nnvm data-structures. More...
#include <dmlc/logging.h>
#include <mxnet/graph_attr_types.h>
#include <nnvm/graph_attr_types.h>
#include <nnvm/tuple.h>
#include <cstring>
#include <map>
#include <set>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
Go to the source code of this file.
Namespaces | |
mxnet | |
namespace of mxnet | |
mxnet::common | |
Functions | |
template<typename T > | |
size_t | mxnet::common::SerializedSize (const T &obj) |
template<typename T > | |
size_t | mxnet::common::SerializedSize (const nnvm::Tuple< T > &obj) |
template<typename K , typename V > | |
size_t | mxnet::common::SerializedSize (const std::map< K, V > &obj) |
template<> | |
size_t | mxnet::common::SerializedSize (const std::string &obj) |
template<typename... Args> | |
size_t | mxnet::common::SerializedSize (const std::tuple< Args... > &obj) |
template<typename T > | |
void | mxnet::common::Serialize (const T &obj, char **buffer) |
template<typename T > | |
void | mxnet::common::Serialize (const nnvm::Tuple< T > &obj, char **buffer) |
template<typename K , typename V > | |
void | mxnet::common::Serialize (const std::map< K, V > &obj, char **buffer) |
template<> | |
void | mxnet::common::Serialize (const std::string &obj, char **buffer) |
template<typename... Args> | |
void | mxnet::common::Serialize (const std::tuple< Args... > &obj, char **buffer) |
template<typename T > | |
void | mxnet::common::Deserialize (T *obj, const std::string &buffer, size_t *curr_pos) |
template<typename T > | |
void | mxnet::common::Deserialize (nnvm::Tuple< T > *obj, const std::string &buffer, size_t *curr_pos) |
template<typename K , typename V > | |
void | mxnet::common::Deserialize (std::map< K, V > *obj, const std::string &buffer, size_t *curr_pos) |
template<> | |
void | mxnet::common::Deserialize (std::string *obj, const std::string &buffer, size_t *curr_pos) |
template<typename... Args> | |
void | mxnet::common::Deserialize (std::tuple< Args... > *obj, const std::string &buffer, size_t *curr_pos) |
template<typename T > | |
size_t | mxnet::common::SerializedContainerSize (const T &obj, char **buffer) |
template<typename T > | |
size_t | mxnet::common::DeserializedContainerSize (T *obj, const std::string &buffer, size_t *curr_pos) |
template<typename T > | |
void | mxnet::common::Serialize (const T &obj, std::string *serialized_data) |
template<typename T > | |
void | mxnet::common::Deserialize (T *obj, const std::string &serialized_data) |
Serialization of some STL and nnvm data-structures.
Copyright (c) 2015 by Contributors