@@ -72,7 +72,7 @@ namespace mluoptest {
72
72
73
73
// env for test negative_scale
74
74
__attribute__ ((__unused__)) bool negative_scale_ =
75
- getEnv (" MLUOP_GTEST_NEGATIVE_SCALE" , false );
75
+ getEnv (" MLUOP_GTEST_NEGATIVE_SCALE" , false );
76
76
77
77
Parser::~Parser () {
78
78
if (proto_node_ != nullptr ) {
@@ -844,7 +844,7 @@ void Parser::getTensorValueByFile(Tensor *pt, void *data, size_t count) {
844
844
// random data(for cpu compute) value is fp32 definitely
845
845
// valueh valuef valuei dtype is according dtype in proto
846
846
void Parser::getTensorValue (Tensor *pt, void *data, ValueType value_type,
847
- size_t count) {
847
+ size_t count) {
848
848
switch (value_type) {
849
849
case VALUE_H:
850
850
getTensorValueH (pt, data, count);
@@ -933,10 +933,9 @@ bool Parser::common_threshold() {
933
933
return res;
934
934
}
935
935
936
- std::set<Evaluator::Criterion> Parser::criterions (
937
- int index, const std::set<Evaluator::Formula> &criterions_use) {
936
+ std::set<Evaluator::Criterion> Parser::criterions (int index,
937
+ const std::set<Evaluator::Formula> &criterions_use) {
938
938
std::set<Evaluator::Criterion> res;
939
-
940
939
// check if there exists complex output tensor
941
940
bool has_complex_output = false ;
942
941
for (auto i = 0 ; i < proto_node_->output_size (); ++i) {
@@ -1040,7 +1039,7 @@ std::set<Evaluator::Criterion> Parser::criterions(
1040
1039
}
1041
1040
1042
1041
static inline bool strEndsWith (const std::string &self,
1043
- const std::string &pattern) {
1042
+ const std::string &pattern) {
1044
1043
if (self.size () < pattern.size ()) return false ;
1045
1044
return (self.compare (self.size () - pattern.size (), pattern.size (), pattern) ==
1046
1045
0 );
@@ -1100,9 +1099,17 @@ bool Parser::readMessageFromFile(const std::string &filename, Node *proto) {
1100
1099
1101
1100
void Parser::getTestInfo () {
1102
1101
std::unordered_map<std::string, std::vector<std::string>> test_info;
1102
+ std::unordered_map<std::string, std::vector<std::string>> internal_test_info;
1103
1103
test_info =
1104
1104
readFileByLine (" ../../test/mlu_op_gtest/pb_gtest/gtest_config/test_list" );
1105
+ internal_test_info = readFileByLine (
1106
+ " ../../test/mlu_op_gtest/pb_gtest/gtest_config/internal_test_list" );
1107
+
1105
1108
list_rely_real_data_ = test_info[" rely_real_data" ];
1109
+ std::vector<std::string> temp_list = internal_test_info[" rely_real_data" ];
1110
+ for (auto &internal_op_name : temp_list) {
1111
+ list_rely_real_data_.push_back (internal_op_name);
1112
+ }
1106
1113
}
1107
1114
1108
1115
Evaluator::Formula Parser::cvtProtoEvaluationCriterion (int f) {
0 commit comments