Home
last modified time | relevance | path

Searched refs:label_list (Results 1 – 25 of 31) sorted by relevance

12

/third_party/mindspore/tests/st/fl/albert/src/
Ddataset.py36 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/
Dlabel_set_task.cc28 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()
Dlabel_switch_task.cc30 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()
Dlabel_goto_task.cc29 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()
Dlabel_manager.cc85 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/
Dtest_datasets_mnist.py67 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)
Dtest_datasets_cifarop.py155 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 …]
Dtest_datasets_usps.py237 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)
Dtest_datasets_flowers102.py277 image_list, label_list = [], []
282 label_list.append("label {}".format(label))
291 visualize_dataset(image_list, label_list)
Dtest_filterop.py37 label_list = []
41 label_list.append(label)
43 assert label_list[0] == 3
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/ge_runtime/
Dmodel_context.h28 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
Dtask_info.h173 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/
Dstream_exec_order_recorder.h78 …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/
Dascend_label_assign.cc51 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/
Dupb_proto_library.bzl275 "_upb": attr.label_list(default = [
296 "deps": attr.label_list(
324 "_upbdefs": attr.label_list(
350 "deps": attr.label_list(
Dbuild_defs.bzl140 "libs": attr.label_list(aspects = [_file_list_aspect]),
/third_party/protobuf/
Dcc_proto_blacklist_test.bzl33 "deps": attr.label_list(
Dprotobuf.bzl189 "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/
Dcloud_eval.py64 label_list=None,
/third_party/grpc/bazel/
Dpython_rules.bzl68 "deps": attr.label_list(
181 "deps": attr.label_list(
Dgenerate_cc.bzl150 "srcs": attr.label_list(
/third_party/mindspore/tests/ut/cpp/dataset/
Dc_api_dataset_ops_test.cc634 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/
Dlua_proto_library.bzl104 "deps": attr.label_list(
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
DMSVSSettings.py195 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/
DMSVSSettings.py195 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)

12