Home
last modified time | relevance | path

Searched refs:label_idx (Results 1 – 8 of 8) sorted by relevance

/third_party/mindspore/mindspore/nn/metrics/
Dmean_surface_distance.py110 label_idx = inputs[2]
112 if not isinstance(label_idx, (int, float)):
113 …e TypeError("The data type of label_idx must be int or float, but got {}.".format(type(label_idx)))
115 if label_idx not in y_pred and label_idx not in y:
116 … raise ValueError("The label_idx should be in y_pred or y, but {} is not.".format(label_idx))
122 y_pred = y_pred == label_idx
124 y = y == label_idx
Droot_mean_square_surface_distance.py112 label_idx = inputs[2]
114 if not isinstance(label_idx, (int, float)):
115 …e TypeError("The data type of label_idx must be int or float, but got {}.".format(type(label_idx)))
117 if label_idx not in y_pred and label_idx not in y:
118 … raise ValueError("The label_idx should be in y_pred or y, but {} is not.".format(label_idx))
124 y_pred = y_pred == label_idx
126 y = y == label_idx
Dhausdorff_distance.py275 label_idx = inputs[2]
277 if not isinstance(label_idx, (int, float)):
278 …e TypeError("The data type of label_idx must be int or float, but got {}.".format(type(label_idx)))
280 if label_idx not in y_pred and label_idx not in y:
281 … raise ValueError("The label_idx should be in y_pred or y, but {} is not.".format(label_idx))
286 y_pred = (y_pred == label_idx) if y_pred.dtype is not bool else y_pred
287 y = (y == label_idx) if y.dtype is not bool else y
/third_party/mindspore/tests/ut/cpp/dataset/
Dmnist_op_test.cc68 uint32_t label_idx; in TEST_F() local
76 ASSERT_OK(de_label->GetItemAt<uint32_t>(&label_idx, {})); in TEST_F()
77 MS_LOG(INFO) << "Tensor label value: " << label_idx; in TEST_F()
78 EXPECT_EQ(label_idx, res[i % 10]); in TEST_F()
Dc_api_dataset_manifest_test.cc241 int32_t label_idx = 0; in TEST_F() local
250 ASSERT_OK(de_label->GetItemAt<int32_t>(&label_idx, {})); in TEST_F()
251 MS_LOG(INFO) << "Tensor label value: " << label_idx; in TEST_F()
252 auto label_it = std::find(expected_label.begin(), expected_label.end(), label_idx); in TEST_F()
/third_party/mesa3d/src/freedreno/afuc/
Ddisasm.c194 label_idx(uint32_t offset, bool create) in label_idx() function
229 lidx = label_idx(offset, false); in label_name()
741 label_idx(i + instr->br.ioff, true); in setup_labels()
745 label_idx(instr->call.uoff, true); in setup_labels()
752 label_idx(i + 3, true); in setup_labels()
/third_party/mindspore/mindspore/explainer/
D_image_classification_runner.py697 for label_idx, label_prob in enumerate(prob):
703 … edit_tree, layer_outputs = self._hoc_searcher.search(sample_input, label_idx, compiled_mask)
713 self._add_hoc_result_to_explain(label_idx, str_mask, edit_tree, layer_outputs, explain)
721 def _add_hoc_result_to_explain(label_idx, str_mask, edit_tree, layer_outputs, explain): argument
733 hoc_rec.label = label_idx
/third_party/mbedtls/tests/suites/
Dtest_suite_ssl.function3675 int label_idx,
3685 if( label_idx == (int) tls13_label_ ## name ) \
3760 int label_idx,
3771 if( label_idx == (int) tls13_label_ ## name ) \