Add parseType
Signed-off-by: Micaela Verucchi <micaelaverucchi@gmail.com>
This commit is contained in:
@@ -9,9 +9,16 @@ namespace tk { namespace dnn {
|
||||
tk::dnn::dataDim_t dim;
|
||||
tk::dnn::Network *net = new tk::dnn::Network(dim);
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string parseType(const std::string& line){
|
||||
size_t start = line.find("[");
|
||||
size_t end = line.find("]");
|
||||
if( start == std::string::npos || end == std::string::npos)
|
||||
return "";
|
||||
start++;
|
||||
std::string type = line.substr(start, end-start);
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user