|
|
@@ -66,9 +66,6 @@ void from_json(const nlohmann::json &json, SingleOpDesc &desc); |
|
|
|
|
|
|
|
class SingleOpParser { |
|
|
|
public: |
|
|
|
static Status ParseSingleOpList(const std::string &file, std::vector<SingleOpBuildParam> &op_list); |
|
|
|
|
|
|
|
private: |
|
|
|
struct JsonTensorVeriry { |
|
|
|
bool is_format_valid = true; |
|
|
|
bool is_dtype_valid = true; |
|
|
@@ -76,7 +73,10 @@ class SingleOpParser { |
|
|
|
std::string format; |
|
|
|
std::string dtype; |
|
|
|
}; |
|
|
|
public: |
|
|
|
static Status ParseSingleOpList(const std::string &file, std::vector<SingleOpBuildParam> &op_list); |
|
|
|
|
|
|
|
private: |
|
|
|
static Status ReadJsonFile(const std::string &file, nlohmann::json &json_obj); |
|
|
|
static bool Validate(const SingleOpDesc &op_desc); |
|
|
|
static Status ValidateSingleOpJson(); |
|
|
|