/third_party/mindspore/tests/st/fl/albert/src/ |
D | dataset.py | 36 def convert_examples_to_features(examples, label_list, max_seq_length, tokenizer, cyclic_trunc=Fals… argument 39 label_map = {label: _ for _, label in enumerate(label_list)} 78 def load_dataset(data_path, max_seq_length, tokenizer, batch_size, label_list=None, do_shuffle=True, argument 80 if label_list is None: 81 label_list = ['good', 'leimu', 'xiaoku', 'xin'] 89 datasets = create_ms_dataset(input_list, label_list, max_seq_length, tokenizer, batch_size, 97 return datasets, len(label_list) 100 def load_datasets(data_dir, max_seq_length, tokenizer, batch_size, label_list=None, do_shuffle=True, argument 102 if label_list is None: 103 label_list = ['good', 'leimu', 'xiaoku', 'xin'] [all …]
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/ge_runtime/task/ |
D | label_set_task.cc | 28 auto label_list = model_context.label_list(); in LabelSetTask() local 32 MS_LOG(INFO) << "Label list size: " << label_list.size() << ", label id: " << label_id; in LabelSetTask() 33 if (stream_id >= stream_list.size() || label_id >= label_list.size()) { in LabelSetTask() 37 label_ = label_list[label_id]; in LabelSetTask()
|
D | label_switch_task.cc | 30 auto all_label_resource = model_context.label_list(); in LabelSwitchTask() 40 …label_info_ = label_manager_->GetLabelInfo(rt_model_handle_, task_info_->label_list(), all_label_r… in LabelSwitchTask() 62 if (task_info_->label_list().empty()) { in CheckParamValid() 66 if (task_info_->label_size() != task_info_->label_list().size()) { in CheckParamValid() 67 …MS_LOG(EXCEPTION) << "label_list size " << task_info_->label_list().size() << " but label_size is " in CheckParamValid()
|
D | label_goto_task.cc | 29 auto label_list = model_context.label_list(); in LabelGotoTask() local 34 MS_LOG(INFO) << "Label list size: " << label_list.size() << ", label id: " << label_id_; in LabelGotoTask() 35 if (stream_id >= stream_list.size() || label_id_ >= label_list.size()) { in LabelGotoTask() 41 label_info_ = label_manager_->GetLabelInfo(rt_model_handle_, {label_id_}, label_list); in LabelGotoTask()
|
D | label_manager.cc | 85 std::vector<void *> label_list; in GetLabelInfo() local 87 std::transform(label_ids.begin(), label_ids.end(), std::back_inserter(label_list), in GetLabelInfo() 100 uint32_t label_info_size = SizeToUint(sizeof(rtLabelDevInfo) * label_list.size()); in GetLabelInfo() 107 …rt_ret = rtLabelListCpy(label_list.data(), SizeToUint(label_list.size()), label_info, label_info_s… in GetLabelInfo()
|
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_datasets_mnist.py | 67 image_list, label_list = [], [] 70 label_list.append("label {}".format(data["label"])) 140 label_list = [] 142 label_list.append(item["label"]) 144 np.testing.assert_array_equal(golden, label_list) 238 image_list, label_list = [], [] 243 label_list.append("label {}".format(label)) 251 visualize_dataset(image_list, label_list)
|
D | test_datasets_cifarop.py | 155 label_list = [] 157 label_list.append(item["label"]) 159 np.testing.assert_array_equal(golden, label_list) 228 image_list, label_list = [], [] 233 label_list.append("label {}".format(label)) 241 visualize_dataset(image_list, label_list) 322 label_list = [] 324 label_list.append(item["coarse_label"]) 326 np.testing.assert_array_equal(golden, label_list) 378 image_list, label_list = [], [] [all …]
|
D | test_datasets_usps.py | 237 image_list, label_list = [], [] 242 label_list.append("label {}".format(label)) 250 visualize_dataset(image_list, label_list) 254 image_list, label_list = [], [] 259 label_list.append("label {}".format(label)) 267 visualize_dataset(image_list, label_list)
|
D | test_datasets_flowers102.py | 277 image_list, label_list = [], [] 282 label_list.append("label {}".format(label)) 291 visualize_dataset(image_list, label_list)
|
D | test_filterop.py | 37 label_list = [] 41 label_list.append(label) 43 assert label_list[0] == 3
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/ge_runtime/ |
D | model_context.h | 28 const std::vector<rtLabel_t> &label_list, const std::vector<rtEvent_t> &event_list) in ModelContext() argument 35 label_list_(label_list), in ModelContext() 45 const std::vector<rtLabel_t> &label_list() const { return label_list_; } in label_list() function
|
D | task_info.h | 173 const std::vector<uint32_t> &label_list, void *cond) in LabelSwitchTaskInfo() argument 176 label_list_(label_list), in LabelSwitchTaskInfo() 180 const std::vector<uint32_t> &label_list() const { return label_list_; } in label_list() function
|
/third_party/mindspore/mindspore/ccsrc/debug/rdr/ |
D | stream_exec_order_recorder.h | 78 …auto label_list = AnfAlgo::GetNodeAttr<std::vector<uint32_t>>(cur_cnode_ptr, kAttrLabelSwitchList); in StreamExecOrderRecorder() local 79 for (size_t j = 0; j < label_list.size(); ++j) { in StreamExecOrderRecorder() 80 exec_node.SetLabelId(label_list[j]); in StreamExecOrderRecorder()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/ |
D | ascend_label_assign.cc | 51 std::vector<uint32_t> label_list; in UpdateLabelSwitch() local 60 label_list.push_back(goto_label_id); in UpdateLabelSwitch() 63 …AnfAlgo::SetNodeAttr(kAttrLabelSwitchList, MakeValue<std::vector<uint32_t>>(label_list), node.get(… in UpdateLabelSwitch()
|
/third_party/grpc/third_party/upb/bazel/ |
D | upb_proto_library.bzl | 275 "_upb": attr.label_list(default = [ 296 "deps": attr.label_list( 324 "_upbdefs": attr.label_list( 350 "deps": attr.label_list(
|
D | build_defs.bzl | 140 "libs": attr.label_list(aspects = [_file_list_aspect]),
|
/third_party/protobuf/ |
D | cc_proto_blacklist_test.bzl | 33 "deps": attr.label_list(
|
D | protobuf.bzl | 189 "srcs": attr.label_list(allow_files = True), 190 "deps": attr.label_list(providers = ["proto"]), 248 "deps": attr.label_list( 366 "deps": attr.label_list(
|
/third_party/mindspore/tests/st/fl/albert/ |
D | cloud_eval.py | 64 label_list=None,
|
/third_party/grpc/bazel/ |
D | python_rules.bzl | 68 "deps": attr.label_list( 181 "deps": attr.label_list(
|
D | generate_cc.bzl | 150 "srcs": attr.label_list(
|
/third_party/mindspore/tests/ut/cpp/dataset/ |
D | c_api_dataset_ops_test.cc | 634 std::vector<uint64_t> label_list; in TEST_F() local 644 label_list.push_back(label_value); in TEST_F() 651 EXPECT_EQ(label_list.at(0), 3); in TEST_F() 680 std::vector<uint64_t> label_list; in TEST_F() local 690 label_list.push_back(label_value); in TEST_F() 697 EXPECT_EQ(label_list.at(0), 2); in TEST_F() 698 EXPECT_EQ(label_list.at(1), 3); in TEST_F()
|
/third_party/grpc/third_party/upb/upb/bindings/lua/ |
D | lua_proto_library.bzl | 104 "deps": attr.label_list(
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
D | MSVSSettings.py | 195 def __init__(self, label_list, new=None): argument 197 self._label_list = label_list 198 self._msbuild_values = set(value for value in label_list
|
/third_party/node/tools/gyp/pylib/gyp/ |
D | MSVSSettings.py | 195 def __init__(self, label_list, new=None): argument 197 self._label_list = label_list 198 self._msbuild_values = set(value for value in label_list if value is not None)
|