|
|
|
@@ -81,8 +81,7 @@ class AclGrphParseUtil { |
|
|
|
domi::Status CheckAclOpNameMap(const ComputeGraphPtr &graph, const std::string &op_conf); |
|
|
|
}; |
|
|
|
|
|
|
|
namespace parser |
|
|
|
{ |
|
|
|
namespace parser { |
|
|
|
/// |
|
|
|
/// @ingroup: domi_common |
|
|
|
/// @brief: get length of file |
|
|
|
@@ -175,8 +174,7 @@ bool ValidateStr(const std::string &filePath, const std::string &mode); |
|
|
|
std::string CurrentTimeInStr(); |
|
|
|
|
|
|
|
template <typename T, typename... Args> |
|
|
|
static inline std::shared_ptr<T> MakeShared(Args &&... args) |
|
|
|
{ |
|
|
|
static inline std::shared_ptr<T> MakeShared(Args &&... args) { |
|
|
|
typedef typename std::remove_const<T>::type T_nc; |
|
|
|
std::shared_ptr<T> ret(new (std::nothrow) T_nc(std::forward<Args>(args)...)); |
|
|
|
return ret; |
|
|
|
|