Commit 21e1fc8d by Jiasen Wu Committed by Tianqi Chen

declare a type name for each tuple type (#151)

* declare a type name for each tuple type

* generic way to declare type names for each tuple type

* fix lint error

* update submodule dmlc-core
parent 392eb60d
......@@ -11,6 +11,7 @@
#include <algorithm>
#include <utility>
#include <iostream>
#include <string>
#include "./base.h"
namespace nnvm {
......@@ -611,4 +612,13 @@ struct hash<nnvm::TShape> {
};
} // namespace std
namespace dmlc {
template<typename T>
struct type_name_helper<nnvm::Tuple<T> > {
static inline std::string value() {
return "tuple of <" + type_name<T>() + ">";
}
};
}
#endif // NNVM_TUPLE_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment