return true;
}
+
+bool from_txt(std::istream &is, ::caffe::PoolingParameter ¶m)
+{
+ ::google::protobuf::io::IstreamInputStream iis{&is};
+ return google::protobuf::TextFormat::Parse(&iis, ¶m);
+}
bool from_txt(std::istream &is, ::caffe::NetParameter ¶m);
bool from_bin(std::istream &is, ::caffe::NetParameter ¶m);
+bool from_txt(std::istream &is, ::caffe::PoolingParameter ¶m);
+
#endif // __IMPORTER_H__
#define STRING(content) #content
-namespace
-{
-
-bool from_txt(std::istream &is, ::caffe::PoolingParameter &pooling)
-{
- ::google::protobuf::io::IstreamInputStream iis{&is};
- return google::protobuf::TextFormat::Parse(&iis, &pooling);
-}
-
-template <typename T> bool from_txt(const std::string &txt, T &out)
+bool from_txt(const std::string &txt, ::caffe::PoolingParameter &out)
{
std::stringstream ss{txt};
return from_txt(ss, out);
}
+namespace
+{
+
class SequentialBuilder
{
public: