/third_party/boost/tools/build/src/build/ |
D | engine.py | 26 def __call__(self, targets, sources, property_set_): argument 27 assert is_iterable(targets) 35 targets, sources, []) 37 self.function(targets, sources, property_set_) 46 def __call__(self, targets, sources, property_set_): argument 47 assert is_iterable(targets) 51 self.function(targets, sources, property_set_) 57 set_jam_action(self.action_name, targets, sources, p) 76 def add_dependency (self, targets, sources): argument 82 if isinstance (targets, str): [all …]
|
D | configure.jam | 21 import targets ; 157 rule maybe-force-rebuild ( targets * ) 161 local all-targets ; 162 for local t in $(targets) 164 all-targets += [ virtual-target.traverse $(t) ] ; 166 for local t in [ sequence.unique $(all-targets) ] 173 # Attempts to build a set of virtual targets 174 rule try-build ( targets * : ps : what : retry ? ) 181 local jam-targets ; 183 maybe-force-rebuild $(targets) ; [all …]
|
D | alias.py | 28 import targets 34 class AliasTarget(targets.BasicTarget): 37 targets.BasicTarget.__init__(self, *args) 51 base = targets.BasicTarget.compute_usage_requirements(self, subvariant) 64 targets = get_manager().targets() 66 targets.main_target_alternative(AliasTarget( 68 targets.main_target_sources(sources, name, no_renaming=True), 69 targets.main_target_requirements(requirements or [], project), 70 targets.main_target_default_build(default_build, project), 71 targets.main_target_usage_requirements(usage_requirements or [], project)))
|
D | virtual-target.jam | 8 # Implements virtual targets, which correspond to actual files created during a 9 # build, but are not yet targets in Jam sense. They are needed, for example, 35 # | actualize-sources() | targets | 129 # Generates all the actual targets and sets up build actions for this 253 # properties (for derived targets) and, optionally, value identifying the main 283 $(action).add-targets $(__name__) ; 399 # distinguish this target from other targets with the same name creating 506 # virtual targets that refer to the same name. One case when 508 # targets have types CPP (for compiling) and MOCCABLE_CPP (for 555 # File targets with explicitly known location. [all …]
|
D | alias.jam | 8 # Alias is just a main target which returns its source targets without any 30 import targets ; 42 rule construct ( name : source-targets * : property-set ) 44 return [ property-set.empty ] $(source-targets) ; 55 # Declares the 'alias' target. It will process its sources virtual-targets by 56 # returning them unaltered as its own constructed virtual-targets. 66 targets.main-target-alternative 68 : [ targets.main-target-sources $(sources) : $(name) : no-renaming ] 69 : [ targets.main-target-requirements $(requirements) : $(project) ] 70 : [ targets.main-target-default-build $(default-build) : $(project) [all …]
|
/third_party/mindspore/tests/st/ops/gpu/ |
D | test_in_top_k.py | 28 def construct(self, predictions, targets): argument 29 return self.in_top_k(predictions, targets) 40 targets = Tensor(np.array([0, 1, 0]).astype(np.int32)) 41 output = in_top_k_net(predictions, targets) 47 targets = Tensor(np.array([0, 1, 0]).astype(np.int32)) 48 output = in_top_k_net(predictions, targets) 54 targets = Tensor(np.array([0, 1, 0]).astype(np.int32)) 55 output = in_top_k_net(predictions, targets) 59 targets = Tensor(np.array([1, 0, 2]).astype(np.int32)) 60 output = in_top_k_net(predictions, targets) [all …]
|
/third_party/mindspore/mindspore/explainer/explanation/_attribution/_perturbation/ |
D | rise.py | 129 def __call__(self, inputs, targets): argument 131 self._verify_data(inputs, targets) 138 targets = self._unify_targets(inputs, targets) 140 attr_np = np.zeros(shape=(inputs.shape[0], targets.shape[1], height, width)) 158 weights = np.expand_dims(np.expand_dims(weights.asnumpy()[:, targets[idx]], 2), 3) 167 def _verify_data(inputs, targets): argument 172 check_value_type('targets', targets, (Tensor, int, tuple, list)) 173 if isinstance(targets, Tensor): 174 if len(targets.shape) > 2: 176 'But got {}D.'.format(len(targets.shape))) [all …]
|
/third_party/boost/tools/build/src/tools/ |
D | symlink.py | 14 import b2.build.targets as targets namespace 17 import b2.build.targets 28 class SymlinkTarget(targets.BasicTarget): 32 def __init__(self, project, targets, sources): argument 38 b2.build.targets.BasicTarget.__init__(self, fake_name, project, sources) 42 assert len(targets) <= len(sources) 43 self.targets = targets[:] + sources[len(targets):] 51 s = self.targets[i] 80 def symlink(targets, sources): argument 83 t = get_manager().targets() [all …]
|
D | symlink.jam | 7 # Defines the "symlink" special target. 'symlink' targets make symbolic links 10 import targets modules path class os feature project property-set ; 16 # The class representing "symlink" targets. 18 class symlink-targets : basic-target 24 : targets * 28 # Generate a fake name for now. Need unnamed targets eventually. 35 # Remember the targets to map the sources onto. Pad or truncate 37 self.targets = ; 40 if $(targets) 42 self.targets += $(targets[1]) ; [all …]
|
D | vmsdecc.jam | 163 rule compile.c++ ( targets * : sources * : properties * ) 165 DEPENDS $(targets) : [ on $(targets) return $(SOURCE-INCLUDES) ] ; 166 DEPENDS $(targets) : [ on $(targets) return $(CXX-REPOS) ] ; 168 DEFINES on $(targets) = [ on $(targets) return "__USE_STD_IOSTREAM" $(DEFINES) ] ; 170 INCLUDES on $(targets) = [ on $(targets) get-includes $(sources) : $(INCLUDES) ] ; 172 TARGET-CXX-REPO on $(targets) = [ on $(targets[1]) get-target-cxx-repo $(LOCATE) ] ; 173 CXX-REPOS on $(targets) = [ on $(targets) return $(TARGET-CXX-REPO) $(CXX-REPOS) ] ; 177 rule compile.c ( targets * : sources * : properties * ) 179 DEPENDS $(targets) : [ on $(targets) return $(SOURCE-INCLUDES) ] ; 181 INCLUDES on $(targets) = [ on $(targets) get-includes $(sources) : $(INCLUDES) ] ; [all …]
|
D | msvc.py | 229 def archive(targets, sources=None, properties=None): argument 230 bjam.call('set-target-variable',targets,'PDB_NAME', os.path.splitext(targets[0])[0] + '.pdb') 273 def get_rspline(targets, lang_opt): argument 275 expand_target_variable(targets, 'UNDEFS' , '\n-U' ) + \ 276 expand_target_variable(targets, 'CFLAGS' , '\n' ) + \ 277 expand_target_variable(targets, 'C++FLAGS', '\n' ) + \ 278 expand_target_variable(targets, 'OPTIONS' , '\n' ) + '\n-c' + \ 279 expand_target_variable(targets, 'DEFINES' , '\n-D' , '\n' ) + \ 280 expand_target_variable(targets, 'INCLUDES', '\n"-I', '"\n' ) 281 bjam.call('set-target-variable', targets, 'CC_RSPLINE', result) [all …]
|
D | make.py | 13 from b2.build.targets import BasicTarget 46 targets = m.targets() 51 targets.main_target_alternative(MakeTarget( 53 targets.main_target_sources(sources, target_name), 54 targets.main_target_requirements(requirements, project), 55 targets.main_target_default_build([], project), 56 targets.main_target_usage_requirements(usage_requirements or [], project)))
|
/third_party/glib/gio/tests/ |
D | srvtarget.c | 95 GList *targets, *sorted, *t; in test_srv_target_ordering() local 100 targets = NULL; in test_srv_target_ordering() 102 targets = g_list_append (targets, g_srv_target_new ("a", 0, 2, 0)); in test_srv_target_ordering() 103 targets = g_list_append (targets, g_srv_target_new ("b", 0, 2, 10)); in test_srv_target_ordering() 104 targets = g_list_append (targets, g_srv_target_new ("c", 0, 2, 15)); in test_srv_target_ordering() 105 targets = g_list_append (targets, g_srv_target_new ("d", 0, 2, 5)); in test_srv_target_ordering() 106 targets = g_list_append (targets, g_srv_target_new ("e", 0, 1, 0)); in test_srv_target_ordering() 107 targets = g_list_append (targets, g_srv_target_new ("f", 0, 1, 50)); in test_srv_target_ordering() 113 sorted = g_srv_target_list_sort (g_list_copy (targets)); in test_srv_target_ordering() 146 g_resolver_free_targets (targets); in test_srv_target_ordering()
|
/third_party/mindspore/mindspore/explainer/benchmark/_attribution/ |
D | metric.py | 42 def verify_targets(targets, num_labels): argument 44 check_value_type('targets', targets, (int, Tensor)) 46 if isinstance(targets, Tensor): 47 if len(targets.shape) > 1 or (len(targets.shape) == 1 and len(targets) != 1): 50 targets = int(targets.asnumpy()[0]) if len(targets.shape) == 1 else int(targets.asnumpy()) 51 if targets > num_labels - 1 or targets < 0: 145 def aggregate(self, result, targets): argument 148 if isinstance(targets, int): 149 self._global_results[targets].append(result) 151 target_np = format_tensor_to_ndarray(targets) [all …]
|
/third_party/gstreamer/gstplugins_bad/data/ |
D | meson.build | 5 ['file-extension', ['targets/file-extension/ogv.gep', 6 'targets/file-extension/oga.gep', 7 'targets/file-extension/mkv.gep', 8 'targets/file-extension/mp3.gep', 9 'targets/file-extension/webm.gep', 10 'targets/file-extension/flv.gep', 11 'targets/file-extension/mp4.gep', 12 'targets/file-extension/ts.gep', 13 'targets/file-extension/avi.gep',], 15 ['online-services', ['targets/online-service/youtube.gep',]], [all …]
|
/third_party/gn/src/gn/ |
D | compile_commands_writer_unittest.cc | 41 std::vector<const Target*> targets; in TEST_F() local 53 targets.push_back(&target); in TEST_F() 58 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() 103 targets.push_back(&shlib_target); in TEST_F() 107 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() 164 targets.push_back(&stlib_target); in TEST_F() 168 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() 234 std::vector<const Target*> targets; in TEST_F() local 242 targets.push_back(&target); in TEST_F() 245 std::string out = writer.RenderJSON(build_settings(), targets); in TEST_F() [all …]
|
D | commands.cc | 153 bool ApplyTestonlyFilter(std::vector<const Target*>* targets) { in ApplyTestonlyFilter() argument 157 if (targets->empty() || testonly_mode == CommandSwitches::TESTONLY_NONE) in ApplyTestonlyFilter() 164 result.reserve(targets->size()); in ApplyTestonlyFilter() 166 for (const Target* target : *targets) { in ApplyTestonlyFilter() 171 *targets = std::move(result); in ApplyTestonlyFilter() 177 bool ApplyTypeFilter(std::vector<const Target*>* targets) { in ApplyTypeFilter() argument 181 if (targets->empty() || type == Target::UNKNOWN) in ApplyTypeFilter() 186 result.reserve(targets->size()); in ApplyTypeFilter() 188 for (const Target* target : *targets) { in ApplyTypeFilter() 196 *targets = std::move(result); in ApplyTypeFilter() [all …]
|
D | json_project_writer_unittest.cc | 41 std::vector<const Target*> targets; in TEST_F() local 42 targets.push_back(&target); in TEST_F() 56 JSONProjectWriter::RenderJSON(setup.build_settings(), targets); in TEST_F() 73 "targets": { in TEST_F() 274 std::vector<const Target*> targets; local 275 targets.push_back(&target); 277 JSONProjectWriter::RenderJSON(setup.build_settings(), targets); 502 std::vector<const Target*> targets; local 503 targets.push_back(&target); 515 JSONProjectWriter::RenderJSON(setup.build_settings(), targets); [all …]
|
/third_party/mindspore/mindspore/explainer/explanation/_attribution/_backprop/ |
D | gradient.py | 86 def __call__(self, inputs, targets): argument 88 self._verify_data(inputs, targets) 90 targets = unify_targets(targets) 92 weights = get_bp_weights(self._backward_model, *inputs, targets) 98 def _verify_data(inputs, targets): argument 110 check_value_type('targets', targets, (Tensor, int)) 111 if isinstance(targets, Tensor): 112 if len(targets.shape) > 1 or (len(targets.shape) == 1 and len(targets) != len(inputs)):
|
/third_party/glib/gio/ |
D | gsrvtarget.c | 233 g_srv_target_list_sort (GList *targets) in g_srv_target_list_sort() argument 239 if (!targets) in g_srv_target_list_sort() 242 if (!targets->next) in g_srv_target_list_sort() 244 target = targets->data; in g_srv_target_list_sort() 251 g_list_free (targets); in g_srv_target_list_sort() 259 targets = g_list_sort (targets, compare_target); in g_srv_target_list_sort() 265 while (targets) in g_srv_target_list_sort() 267 priority = ((GSrvTarget *)targets->data)->priority; in g_srv_target_list_sort() 273 for (t = targets; t; t = t->next) in g_srv_target_list_sort() 290 for (t = targets; ; t = t->next) in g_srv_target_list_sort() [all …]
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_cb_xformfb.c | 55 struct pipe_stream_output_target *targets[PIPE_MAX_SO_BUFFERS]; member 97 pipe_so_target_reference(&sobj->targets[i], NULL); in st_delete_transform_feedback() 117 ARRAY_SIZE(sobj->targets)); in st_begin_transform_feedback() 128 if (!sobj->targets[i] || in st_begin_transform_feedback() 129 sobj->targets[i] == sobj->draw_count[stream] || in st_begin_transform_feedback() 130 sobj->targets[i]->buffer != bo->buffer || in st_begin_transform_feedback() 131 sobj->targets[i]->buffer_offset != sobj->base.Offset[i] || in st_begin_transform_feedback() 132 sobj->targets[i]->buffer_size != sobj->base.Size[i]) { in st_begin_transform_feedback() 139 pipe_so_target_reference(&sobj->targets[i], NULL); in st_begin_transform_feedback() 140 sobj->targets[i] = so_target; in st_begin_transform_feedback() [all …]
|
/third_party/grpc/tools/run_tests/ |
D | task_runner.py | 30 _TARGETS += artifact_targets.targets() 31 _TARGETS += distribtest_targets.targets() 32 _TARGETS += package_targets.targets() 80 targets = [] variable 82 targets += _BUILD_MAP[label] 85 targets = [t for t in targets if all(f in t.labels for f in args.filter)] variable 86 targets = sorted(set(targets)) variable 90 for target in targets: 101 for target in targets:
|
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_struct-json/ |
D | README.md | 23 [2020/05/21 16:36:57:1387] N: lws_struct_default_lejp_cb: created 'targets' object size 48 24 [2020/05/21 16:36:57:1429] N: lws_struct_default_lejp_cb: created 'targets' object size 48 25 [2020/05/21 16:36:57:1467] N: builder.hostname = 'learn', timeout = 1800, targets (2) 29 {"schema":"com-warmcat-sai-builder","hostname":"learn","nspawn_timeout":1800,"targets":[{"name":"ta… 32 [2020/05/21 16:36:57:1650] N: lws_struct_default_lejp_cb: created 'targets' object size 48 33 [2020/05/21 16:36:57:1651] N: lws_struct_default_lejp_cb: created 'targets' object size 48 34 [2020/05/21 16:36:57:1652] N: lws_struct_default_lejp_cb: created 'targets' object size 48 35 [2020/05/21 16:36:57:1653] N: builder.hostname = 'learn', timeout = 0, targets (3) 40 {"schema":"com-warmcat-sai-builder","hostname":"learn","nspawn_timeout":0,"targets":[{"name":"targe… 43 [2020/05/21 16:36:57:1664] N: lws_struct_default_lejp_cb: created 'targets' object size 48 [all …]
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fShaderMultisampleInterpolationTests.cpp | 1688 } targets[] = in init() local 1730 for (int targetNdx = 0; targetNdx < DE_LENGTH_OF_ARRAY(targets); ++targetNdx) in init() 1731 …eQualifierRenderCase(m_context, targets[targetNdx].name, targets[targetNdx].desc, targets[targetNd… in init() 1744 for (int targetNdx = 0; targetNdx < DE_LENGTH_OF_ARRAY(targets); ++targetNdx) in init() 1745 …teAtSampleRenderCase(m_context, targets[targetNdx].name, targets[targetNdx].desc, targets[targetNd… in init() 1753 for (int targetNdx = 0; targetNdx < DE_LENGTH_OF_ARRAY(targets); ++targetNdx) in init() 1754 …teAtSampleRenderCase(m_context, targets[targetNdx].name, targets[targetNdx].desc, targets[targetNd… in init() 1762 for (int targetNdx = 0; targetNdx < DE_LENGTH_OF_ARRAY(targets); ++targetNdx) in init() 1763 if (targets[targetNdx].numSamples == 0) in init() 1764 …:string("sample_0_").append(targets[targetNdx].name).c_str(), targets[targetNdx].desc, targets[tar… in init() [all …]
|
/third_party/mesa3d/src/gallium/ |
D | meson.build | 185 subdir('targets/pipe-loader') 188 subdir('targets/opencl') 192 subdir('targets/dri') 196 subdir('targets/osmesa') 201 subdir('targets/libgl-xlib') 205 subdir('targets/vdpau') 209 subdir('targets/xvmc') 213 subdir('targets/omx') 217 subdir('targets/va') 221 subdir('targets/xa') [all …]
|