/third_party/mindspore/tests/ut/cpp/dataset/ |
D | c_api_epoch_ctrl_test.cc | 50 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 56 ASSERT_OK(Tensor::CreateFromMSTensor(label, &de_label)); in TEST_F() 57 ASSERT_OK(de_label->GetItemAt(&label_value, {})); in TEST_F() 60 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 68 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 97 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 102 ASSERT_OK(Tensor::CreateFromMSTensor(label, &de_label)); in TEST_F() 103 ASSERT_OK(de_label->GetItemAt(&label_value, {})); in TEST_F() 106 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 115 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() [all …]
|
D | c_api_dataset_clue_test.cc | 48 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 58 ASSERT_OK(Tensor::CreateFromMSTensor(text, &de_text)); in TEST_F() 60 ASSERT_OK(de_text->GetItemAt(&sv, {})); in TEST_F() 64 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 81 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 87 ASSERT_OK(Tensor::CreateFromMSTensor(text, &de_text)); in TEST_F() 89 ASSERT_OK(de_text->GetItemAt(&sv, {})); in TEST_F() 92 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 104 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 110 ASSERT_OK(Tensor::CreateFromMSTensor(text, &de_text)); in TEST_F() [all …]
|
D | c_api_audio_a_to_q_test.cc | 39 ASSERT_OK(schema->add_column("inputData", mindspore::DataType::kNumberTypeFloat32, {2, 200})); in TEST_F() 55 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 65 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 77 ASSERT_OK(schema->add_column("inputData", mindspore::DataType::kNumberTypeFloat32, {2, 200})); in TEST_F() 98 ASSERT_OK(schema->add_column("inputData", mindspore::DataType::kNumberTypeFloat32, {2, 200})); in TEST_F() 115 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 125 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 137 ASSERT_OK(schema->add_column("inputData", mindspore::DataType::kNumberTypeFloat32, {2, 2})); in TEST_F() 166 ASSERT_OK(schema->add_column("inputData", mindspore::DataType::kNumberTypeFloat32, {2, 200})); in TEST_F() 183 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() [all …]
|
D | c_api_transforms_test.cc | 57 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 68 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 150 ASSERT_OK(schema->add_column("col1", mindspore::DataType::kNumberTypeInt16, {1})); in TEST_F() 159 ASSERT_OK(Tensor::CreateFromVector(prepend_vector, &prepend_tensor)); in TEST_F() 165 ASSERT_OK(Tensor::CreateFromVector(append_vector, &append_tensor)); in TEST_F() 182 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 192 ASSERT_OK(Tensor::CreateFromVector(expected[i], &de_expected_tensor)); in TEST_F() 196 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 215 ASSERT_OK(schema->add_column("col1", mindspore::DataType::kNumberTypeInt16, {1})); in TEST_F() 234 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() [all …]
|
D | c_api_dataset_csv_test.cc | 45 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 58 ASSERT_OK(Tensor::CreateFromMSTensor(text, &de_text)); in TEST_F() 60 ASSERT_OK(de_text->GetItemAt(&sv, {})); in TEST_F() 64 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 112 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 124 ASSERT_OK(Tensor::CreateFromMSTensor(text, &de_text)); in TEST_F() 126 ASSERT_OK(de_text->GetItemAt(&sv, {})); in TEST_F() 130 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 161 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 170 ASSERT_OK(Tensor::CreateFromMSTensor(text, &de_text)); in TEST_F() [all …]
|
D | album_op_test.cc | 76 ASSERT_OK(tree->Prepare()); in TEST_F() 77 ASSERT_OK(tree->Launch()); in TEST_F() 80 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 88 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 102 ASSERT_OK(tree->Prepare()); in TEST_F() 103 ASSERT_OK(tree->Launch()); in TEST_F() 106 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 114 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 130 ASSERT_OK(tree->Launch()); in TEST_F() 133 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() [all …]
|
D | c_api_dataset_tfrecord_test.cc | 66 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 77 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 146 ASSERT_OK(iter1->GetNextRow(&row1)); in TEST_F() 148 ASSERT_OK(iter2->GetNextRow(&row2)); in TEST_F() 156 ASSERT_OK(Tensor::CreateFromMSTensor(scalars1, &de_scalars1)); in TEST_F() 157 ASSERT_OK(de_scalars1->GetItemAt(&value1, {0})); in TEST_F() 161 ASSERT_OK(Tensor::CreateFromMSTensor(scalars2, &de_scalars2)); in TEST_F() 162 ASSERT_OK(de_scalars2->GetItemAt(&value2, {0})); in TEST_F() 166 ASSERT_OK(iter1->GetNextRow(&row1)); in TEST_F() 167 ASSERT_OK(iter2->GetNextRow(&row2)); in TEST_F() [all …]
|
D | c_api_text_test.cc | 66 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 84 ASSERT_OK(Tensor::CreateFromVector(expected[i], &de_expected_tensor)); in TEST_F() 89 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 127 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 131 ASSERT_OK(Tensor::CreateFromVector(expected, &de_expected_tensor)); in TEST_F() 139 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 178 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 185 ASSERT_OK(Tensor::CreateFromVector(expected_tokens, &de_expected_tokens)); in TEST_F() 190 ASSERT_OK(Tensor::CreateFromVector(expected_offsets_start, &de_expected_offsets_start)); in TEST_F() 195 ASSERT_OK(Tensor::CreateFromVector(expected_offsets_limit, &de_expected_offsets_limit)); in TEST_F() [all …]
|
D | take_op_test.cc | 55 ASSERT_OK(rc); in TEST_F() 60 ASSERT_OK(rc); in TEST_F() 62 ASSERT_OK(rc); in TEST_F() 66 ASSERT_OK(rc); in TEST_F() 68 ASSERT_OK(rc); in TEST_F() 73 ASSERT_OK(rc); in TEST_F() 76 ASSERT_OK(rc); in TEST_F() 82 ASSERT_OK(rc); in TEST_F() 96 ASSERT_OK(rc); in TEST_F()
|
D | c_api_dataset_textfile_test.cc | 54 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 64 ASSERT_OK(Tensor::CreateFromMSTensor(text, &de_text)); in TEST_F() 66 ASSERT_OK(de_text->GetItemAt(&sv, {})); in TEST_F() 73 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 127 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 137 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 313 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 324 ASSERT_OK(Tensor::CreateFromMSTensor(text, &de_text)); in TEST_F() 326 ASSERT_OK(de_text->GetItemAt(&sv, {})); in TEST_F() 333 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() [all …]
|
D | c_api_dataset_randomdata_test.cc | 33 ASSERT_OK(schema->add_column("image", mindspore::DataType::kNumberTypeUInt8, {2})); in TEST_F() 34 ASSERT_OK(schema->add_column("label", mindspore::DataType::kNumberTypeUInt8, {1})); in TEST_F() 52 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 62 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 77 ASSERT_OK(schema->add_column("image", mindspore::DataType::kNumberTypeUInt8, {2})); in TEST_F() 78 ASSERT_OK(schema->add_column("label", mindspore::DataType::kNumberTypeUInt8, {1})); in TEST_F() 110 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 120 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 135 ASSERT_OK(schema->add_column("image", mindspore::DataType::kNumberTypeUInt8, {2})); in TEST_F() 136 ASSERT_OK(schema->add_column("label", mindspore::DataType::kNumberTypeUInt8, {1})); in TEST_F() [all …]
|
D | c_api_cache_test.cc | 103 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 110 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 146 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 153 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 187 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 194 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 229 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 236 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 270 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 277 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() [all …]
|
D | c_api_samplers_test.cc | 75 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 82 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 104 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 110 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 134 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 140 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 165 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 171 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 197 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 203 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() [all …]
|
D | c_api_audio_r_to_z_test.cc | 35 ASSERT_OK(schema->add_column("inputData", mindspore::DataType::kNumberTypeFloat32, {2, 200})); in TEST_F() 52 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 62 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 74 ASSERT_OK(schema->add_column("inputData", mindspore::DataType::kNumberTypeFloat32, {2, 20})); in TEST_F() 99 …ASSERT_OK(schema->add_column("inputData", mindspore::DataType::kNumberTypeFloat32, {2, freq, 400, … in TEST_F() 116 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 125 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 141 …ASSERT_OK(schema->add_column("inputData", mindspore::DataType::kNumberTypeFloat32, {2, freq, 400, … in TEST_F() 163 ASSERT_OK(schema->add_column("inputData", mindspore::DataType::kNumberTypeFloat32, {2, 200})); in TEST_F() 179 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() [all …]
|
D | text_file_op_test.cc | 51 ASSERT_OK(rc); in TEST_F() 61 ASSERT_OK(rc); in TEST_F() 64 ASSERT_OK(rc); in TEST_F() 67 ASSERT_OK(rc); in TEST_F() 71 ASSERT_OK(rc); in TEST_F() 74 ASSERT_OK(rc); in TEST_F() 80 ASSERT_OK(rc); in TEST_F() 92 ASSERT_OK(rc); in TEST_F()
|
D | c_api_dataset_iterator_test.cc | 42 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 52 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 82 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 91 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 120 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 130 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 161 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 172 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 202 ASSERT_OK(schema->add_column("image", mindspore::DataType::kNumberTypeUInt8, {2})); in TEST_F() 212 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() [all …]
|
D | c_api_dataset_coco_test.cc | 44 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 54 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 101 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 111 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 152 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 174 …ASSERT_OK(Tensor::CreateFromVector(expect_bbox_vector[i], TensorShape({bbox_num, 4}), &de_expect_b… in TEST_F() 180 …ASSERT_OK(Tensor::CreateFromVector(expect_catagoryid_list[i], TensorShape({bbox_num, 1}), &de_expe… in TEST_F() 185 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 242 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 265 …ASSERT_OK(Tensor::CreateFromVector(expect_keypoint_vector[i], TensorShape(expect_size[i]), &de_exp… in TEST_F() [all …]
|
D | c_api_dataset_minddata_test.cc | 44 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 52 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 94 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 102 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 130 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 138 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 165 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 172 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 200 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 203 ASSERT_OK(Tensor::CreateScalar((int64_t)0, &de_expect_item)); in TEST_F() [all …]
|
D | c_api_dataset_manifest_test.cc | 41 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 48 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 93 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 100 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 160 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 170 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 194 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 201 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 238 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 249 ASSERT_OK(Tensor::CreateFromMSTensor(label, &de_label)); in TEST_F() [all …]
|
D | mnist_op_test.cc | 67 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 75 ASSERT_OK(Tensor::CreateFromMSTensor(label, &de_label)); in TEST_F() 76 ASSERT_OK(de_label->GetItemAt<uint32_t>(&label_idx, {})); in TEST_F() 79 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 102 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 110 ASSERT_OK(Tensor::CreateFromVector(expected[i % 4], &de_expected_label)); in TEST_F() 114 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F()
|
D | image_folder_op_test.cc | 95 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 104 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 121 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 129 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 151 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 160 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 187 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 197 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 228 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() 264 ASSERT_OK(di.GetNextAsMap(&tensor_map)); in TEST_F() [all …]
|
D | c_api_vision_random_test.cc | 102 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 109 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 150 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 157 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 202 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 209 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 266 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 273 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 324 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 331 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() [all …]
|
D | c_api_vision_soft_dvpp_test.cc | 54 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 62 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 96 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 104 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 140 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 147 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 178 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 185 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F()
|
D | c_api_dataset_ops_test.cc | 120 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 127 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 156 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 163 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 193 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 200 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 506 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 512 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 586 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() 592 ASSERT_OK(iter->GetNextRow(&row)); in TEST_F() [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | astrotst.cpp | 47 #define ASSERT_OK(x) UPRV_BLOCK_MACRO_BEGIN { \ macro 86 ASSERT_OK(status); in TestSolarLongitude() 109 ASSERT_OK(status); in TestSolarLongitude() 117 ASSERT_OK(status); in TestLunarPosition() 134 ASSERT_OK(status); in TestLunarPosition() 142 ASSERT_OK(status); in TestCoordinates() 148 ASSERT_OK(status); in TestCoordinates() 156 ASSERT_OK(status); in TestCoverage() 160 ASSERT_OK(status); in TestCoverage() 210 ASSERT_OK(status); in TestCoverage() [all …]
|