Home
last modified time | relevance | path

Searched refs:new_params (Results 1 – 24 of 24) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Dpartial_eliminate.h86 AnfNodePtrList new_params; in operator() local
87 …copy(fg->parameters().cbegin() + xs_size, fg->parameters().cend(), std::back_inserter(new_params)); in operator()
88 …py(fg->parameters().cbegin(), fg->parameters().cbegin() + xs_size, std::back_inserter(new_params)); in operator()
89 fg->manager()->SetParameters(fg, new_params); in operator()
231 AnfNodePtrList new_params; in UnifyParameters() local
232 new_params.resize(anchor_params_size + extra_input_counter); in UnifyParameters()
240 new_params[curr_inputs_index[j]] = old_params[j]; in UnifyParameters()
244 new_params[anchor_args_size + extra_input_counter + k] = old_params[j]; in UnifyParameters()
248 if (new_params[j] == nullptr) { in UnifyParameters()
251 new_params[j] = param; in UnifyParameters()
[all …]
Dinline.h223 void ReplaceParams(const FuncGraphManagerPtr &mng, const std::vector<AnfNodePtr> &new_params, in ReplaceParams() argument
227 if (old_size != new_params.size()) { in ReplaceParams()
228 MS_LOG(EXCEPTION) << "Parameter size not match." << old_size << " new " << new_params.size() in ReplaceParams()
232 (void)mng->Replace(params[i], new_params[i]); in ReplaceParams()
273 std::vector<AnfNodePtr> new_params; in SimplifyAfterParameter() local
274 std::transform(used_param_index.begin(), used_param_index.end(), std::back_inserter(new_params), in SimplifyAfterParameter()
276 new_fg->set_parameters(new_params); in SimplifyAfterParameter()
Dspecialize_transform.h56 std::vector<AnfNodePtr> new_params; in operator() local
60 new_params.push_back(params[i]); in operator()
66 mng->SetParameters(new_fg, new_params); in operator()
/third_party/skia/third_party/externals/brotli/c/enc/
Dmetablock.c61 const BrotliDistanceParams* new_params) { in RecomputeDistancePrefixes() argument
64 if (orig_params->distance_postfix_bits == new_params->distance_postfix_bits && in RecomputeDistancePrefixes()
66 new_params->num_direct_distance_codes) { in RecomputeDistancePrefixes()
74 new_params->num_direct_distance_codes, in RecomputeDistancePrefixes()
75 new_params->distance_postfix_bits, in RecomputeDistancePrefixes()
85 const BrotliDistanceParams* new_params, in ComputeDistanceCost() argument
95 if (orig_params->distance_postfix_bits == new_params->distance_postfix_bits && in ComputeDistanceCost()
97 new_params->num_direct_distance_codes) { in ComputeDistanceCost()
108 if (distance > new_params->max_distance) { in ComputeDistanceCost()
112 new_params->num_direct_distance_codes, in ComputeDistanceCost()
[all …]
/third_party/node/deps/brotli/c/enc/
Dmetablock.c61 const BrotliDistanceParams* new_params) { in RecomputeDistancePrefixes() argument
64 if (orig_params->distance_postfix_bits == new_params->distance_postfix_bits && in RecomputeDistancePrefixes()
66 new_params->num_direct_distance_codes) { in RecomputeDistancePrefixes()
74 new_params->num_direct_distance_codes, in RecomputeDistancePrefixes()
75 new_params->distance_postfix_bits, in RecomputeDistancePrefixes()
85 const BrotliDistanceParams* new_params, in ComputeDistanceCost() argument
95 if (orig_params->distance_postfix_bits == new_params->distance_postfix_bits && in ComputeDistanceCost()
97 new_params->num_direct_distance_codes) { in ComputeDistanceCost()
108 if (distance > new_params->max_distance) { in ComputeDistanceCost()
112 new_params->num_direct_distance_codes, in ComputeDistanceCost()
[all …]
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dgraph_transform.h75 std::vector<AnfNodePtr> new_params; in TransformGraphParam() local
83 std::transform(tuple_params.begin(), tuple_params.end(), std::back_inserter(new_params), in TransformGraphParam()
86 new_params.push_back(param); in TransformGraphParam()
97 tr.SetParameters(new_fg, new_params); in TransformGraphParam()
Dclean.cc535 std::vector<AnfNodePtr> new_params; in ExpandTuplesP() local
546 new_params.emplace_back(param); in ExpandTuplesP()
563 (void)new_params.insert(new_params.end(), expand_param.begin(), expand_param.end()); in ExpandTuplesP()
565 return new_params; in ExpandTuplesP()
/third_party/python/Lib/email/
Dutils.py265 new_params = [params[0]]
280 new_params.append((name, '"%s"' % quote(value)))
303 new_params.append((name, (charset, language, '"%s"' % value)))
305 new_params.append((name, '"%s"' % value))
306 return new_params
/third_party/flutter/skia/third_party/externals/libwebp/examples/
Dimg2webp.c95 WebPMuxAnimParams new_params; in SetLoopCount() local
103 err = WebPMuxGetAnimationParams(mux, &new_params); in SetLoopCount()
106 new_params.loop_count = loop_count; in SetLoopCount()
107 err = WebPMuxSetAnimationParams(mux, &new_params); in SetLoopCount()
Dgif2webp.c496 WebPMuxAnimParams new_params; in main() local
497 err = WebPMuxGetAnimationParams(mux, &new_params); in main()
503 new_params.loop_count = loop_count; in main()
504 err = WebPMuxSetAnimationParams(mux, &new_params); in main()
/third_party/skia/third_party/externals/libwebp/examples/
Dimg2webp.c95 WebPMuxAnimParams new_params; in SetLoopCount() local
103 err = WebPMuxGetAnimationParams(mux, &new_params); in SetLoopCount()
106 new_params.loop_count = loop_count; in SetLoopCount()
107 err = WebPMuxSetAnimationParams(mux, &new_params); in SetLoopCount()
Dgif2webp.c498 WebPMuxAnimParams new_params; in main() local
499 err = WebPMuxGetAnimationParams(mux, &new_params); in main()
505 new_params.loop_count = loop_count; in main()
506 err = WebPMuxSetAnimationParams(mux, &new_params); in main()
/third_party/pixman/pixman/
Dpixman-image.c729 pixman_fixed_t *new_params; in pixman_image_set_filter() local
747 new_params = NULL; in pixman_image_set_filter()
750 new_params = pixman_malloc_ab (n_params, sizeof (pixman_fixed_t)); in pixman_image_set_filter()
751 if (!new_params) in pixman_image_set_filter()
754 memcpy (new_params, in pixman_image_set_filter()
763 common->filter_params = new_params; in pixman_image_set_filter()
/third_party/python/Lib/
Dinspect.py1895 new_params = OrderedDict(old_params.items())
1920 new_params.pop(param_name)
1939 new_params[param_name] = param.replace(default=arg_value)
1942 new_params.pop(param.name)
1947 new_params[param_name] = param.replace(default=arg_value)
1953 new_param = new_params[param_name].replace(kind=_KEYWORD_ONLY)
1954 new_params[param_name] = new_param
1955 new_params.move_to_end(param_name)
1957 new_params.move_to_end(param_name)
1959 new_params.pop(param.name)
[all …]
Dtyping.py256 new_params = []
259 new_params.append(t)
261 params = new_params
/third_party/ffmpeg/libavformat/
Dhttp.c885 AVDictionary *new_params = NULL; in parse_cookie() local
890 if (parse_set_cookie(p, &new_params)) in parse_cookie()
894 cookie_entry = av_dict_get(new_params, "", NULL, AV_DICT_IGNORE_SUFFIX); in parse_cookie()
896 av_dict_free(&new_params); in parse_cookie()
901 if ((e = av_dict_get(new_params, "expires", NULL, 0)) && e->value) { in parse_cookie()
908 av_dict_free(&new_params); in parse_cookie()
922 av_dict_free(&new_params); in parse_cookie()
933 av_dict_free(&new_params); in parse_cookie()
/third_party/mindspore/mindspore/core/ir/
Dfunc_graph_cloner.cc432 std::unordered_set<AnfNodePtr> new_params; in OrderParameters() local
441 (void)new_params.insert(new_param); in OrderParameters()
445 if (new_params.find(param) == new_params.end()) { in OrderParameters()
/third_party/mindspore/mindspore/nn/wrap/
Dcell_wrapper.py670 new_params = self.map_(F.partial(_cast_datatype), datatypes, params)
671 return new_params
/third_party/python/Lib/test/
Dtest_inspect.py2976 new_params = tuple(sig.parameters.values())[1:]
2977 wrapper.__signature__ = sig.replace(parameters=new_params)
3347 new_params = list(sig.parameters.values())
3348 new_params[0] = new_params[0].replace(kind=P.POSITIONAL_ONLY)
3349 test.__signature__ = sig.replace(parameters=new_params)
3912 new_params = collections.OrderedDict(tuple(sig.parameters.items()))
3914 new_params[name] = new_params[name].replace(kind=P.POSITIONAL_ONLY)
3915 new_sig = sig.replace(parameters=new_params.values())
/third_party/mesa3d/src/compiler/glsl/
Dir.cpp2210 ir_function_signature::replace_parameters(exec_list *new_params) in replace_parameters() argument
2216 new_params->move_nodes_to(&parameters); in replace_parameters()
Dir.h1246 void replace_parameters(exec_list *new_params);
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/
Dpynative_execute.cc1648 std::vector<AnfNodePtr> new_params; in MakeCNodeForMsFunction() local
1655 new_params.push_back(param); in MakeCNodeForMsFunction()
1670 new_params.push_back(param); in MakeCNodeForMsFunction()
1677 ms_func_graph->set_parameters(new_params); in MakeCNodeForMsFunction()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dctrl_iface.c7546 char *new_params = NULL; in wpa_supplicant_ctrl_iface_autoscan() local
7549 new_params = os_strdup(cmd); in wpa_supplicant_ctrl_iface_autoscan()
7550 if (new_params == NULL) in wpa_supplicant_ctrl_iface_autoscan()
7555 wpa_s->conf->autoscan = new_params; in wpa_supplicant_ctrl_iface_autoscan()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dctrl_iface.c7965 char *new_params = NULL; in wpa_supplicant_ctrl_iface_autoscan() local
7968 new_params = os_strdup(cmd); in wpa_supplicant_ctrl_iface_autoscan()
7969 if (new_params == NULL) in wpa_supplicant_ctrl_iface_autoscan()
7974 wpa_s->conf->autoscan = new_params; in wpa_supplicant_ctrl_iface_autoscan()