Home
last modified time | relevance | path

Searched refs:parameter_index (Results 1 – 20 of 20) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_replace_params_with_struct.cpp50 std::vector<uint32_t> parameter_index(params.size()); in Apply() local
51 std::iota(parameter_index.begin(), parameter_index.end(), 0); in Apply()
55 std::remove_if(parameter_index.begin(), parameter_index.end(), in Apply()
66 parameter_index.erase(new_end, parameter_index.end()); in Apply()
68 if (parameter_index.empty()) { in Apply()
76 parameter_index.size(), in Apply()
80 GetFuzzerContext()->Shuffle(&parameter_index); in Apply()
81 parameter_index.resize(num_replaced_params); in Apply()
85 for (auto index : parameter_index) { in Apply()
93 for (auto index : parameter_index) { in Apply()
Dtransformation_replace_parameter_with_global.cpp122 auto parameter_index = static_cast<uint32_t>(params.size()); in Apply() local
125 parameter_index = i; in Apply()
130 assert(parameter_index != params.size() && in Apply()
145 {inst->GetSingleWordInOperand(parameter_index + 1)}}})); in Apply()
149 inst->RemoveInOperand(parameter_index + 1); in Apply()
166 if (i - 1 != parameter_index) { in Apply()
Dtransformation_inline_function.cpp299 uint32_t parameter_index = 0; in AdaptInlinedInstruction() local
302 &parameter_index](opt::Instruction* parameter_instruction) { in AdaptInlinedInstruction()
309 parameter_index + 1); in AdaptInlinedInstruction()
311 parameter_index++; in AdaptInlinedInstruction()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dfuzzer_pass_replace_params_with_struct.cpp50 std::vector<uint32_t> parameter_index(params.size()); in Apply() local
51 std::iota(parameter_index.begin(), parameter_index.end(), 0); in Apply()
55 std::remove_if(parameter_index.begin(), parameter_index.end(), in Apply()
66 parameter_index.erase(new_end, parameter_index.end()); in Apply()
68 if (parameter_index.empty()) { in Apply()
76 parameter_index.size(), in Apply()
80 GetFuzzerContext()->Shuffle(&parameter_index); in Apply()
81 parameter_index.resize(num_replaced_params); in Apply()
85 for (auto index : parameter_index) { in Apply()
93 for (auto index : parameter_index) { in Apply()
Dtransformation_replace_parameter_with_global.cpp122 auto parameter_index = static_cast<uint32_t>(params.size()); in Apply() local
125 parameter_index = i; in Apply()
130 assert(parameter_index != params.size() && in Apply()
145 {inst->GetSingleWordInOperand(parameter_index + 1)}}})); in Apply()
149 inst->RemoveInOperand(parameter_index + 1); in Apply()
166 if (i - 1 != parameter_index) { in Apply()
Dtransformation_inline_function.cpp299 uint32_t parameter_index = 0; in AdaptInlinedInstruction() local
302 &parameter_index](opt::Instruction* parameter_instruction) { in AdaptInlinedInstruction()
309 parameter_index + 1); in AdaptInlinedInstruction()
311 parameter_index++; in AdaptInlinedInstruction()
/third_party/spirv-tools/source/fuzz/
Dfuzzer_pass_replace_params_with_struct.cpp49 std::vector<uint32_t> parameter_index(params.size()); in Apply() local
50 std::iota(parameter_index.begin(), parameter_index.end(), 0); in Apply()
54 std::remove_if(parameter_index.begin(), parameter_index.end(), in Apply()
65 parameter_index.erase(new_end, parameter_index.end()); in Apply()
67 if (parameter_index.empty()) { in Apply()
75 parameter_index.size(), in Apply()
79 GetFuzzerContext()->Shuffle(&parameter_index); in Apply()
80 parameter_index.resize(num_replaced_params); in Apply()
84 for (auto index : parameter_index) { in Apply()
92 for (auto index : parameter_index) { in Apply()
Dtransformation_replace_parameter_with_global.cpp122 auto parameter_index = static_cast<uint32_t>(params.size()); in Apply() local
125 parameter_index = i; in Apply()
130 assert(parameter_index != params.size() && in Apply()
145 {inst->GetSingleWordInOperand(parameter_index + 1)}}})); in Apply()
149 inst->RemoveInOperand(parameter_index + 1); in Apply()
166 if (i - 1 != parameter_index) { in Apply()
Dtransformation_inline_function.cpp299 uint32_t parameter_index = 0; in AdaptInlinedInstruction() local
302 &parameter_index](opt::Instruction* parameter_instruction) { in AdaptInlinedInstruction()
309 parameter_index + 1); in AdaptInlinedInstruction()
311 parameter_index++; in AdaptInlinedInstruction()
/third_party/mindspore/mindspore/ccsrc/runtime/framework/
Dgraph_compiler.h119 … VectorRef *const outputs, std::map<AnfNodePtr, size_t> *parameter_index,
125 const std::map<AnfNodePtr, size_t> &parameter_index,
129 const std::map<AnfNodePtr, size_t> &parameter_index,
Dgraph_compiler.cc452 std::map<AnfNodePtr, size_t> *parameter_index, in GetParamAndOutputIndex() argument
455 session_->GetParameterIndex(graph.get(), inputs, parameter_index); in GetParamAndOutputIndex()
461 const std::map<AnfNodePtr, size_t> &parameter_index, in GetSingleOpInputTensors() argument
465 session_->GetOpInputTensors(kernel, op_output, parameter_index, graph_inputs, input_tensor_info); in GetSingleOpInputTensors()
470 … const std::map<AnfNodePtr, size_t> &parameter_index, in GetSingleOpInputTensorByIndex() argument
474 …return session_->GetOpInputTensorByIndex(kernel, op_output, parameter_index, graph_inputs, input_t… in GetSingleOpInputTensorByIndex()
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dsession_basic.h187 std::map<AnfNodePtr, size_t> *parameter_index);
242 … void BuildOpsInGraph(const GraphId &graph_id, const std::map<AnfNodePtr, size_t> &parameter_index, in BuildOpsInGraph() argument
278 const std::map<AnfNodePtr, size_t> &parameter_index,
283 const std::map<AnfNodePtr, size_t> &parameter_index,
287 const std::map<AnfNodePtr, size_t> &parameter_index,
Dascend_session.h75 void BuildOpsInGraph(const GraphId &graph_id, const std::map<AnfNodePtr, size_t> &parameter_index,
151 …d GetOpInputStubTensors(const CNodePtr &cnode, const std::map<AnfNodePtr, size_t> &parameter_index,
Dsession_basic.cc1243 std::map<AnfNodePtr, size_t> *parameter_index) { in GetParameterIndex() argument
1268 parameter_index->emplace(param, index++); in GetParameterIndex()
1405 … const std::map<AnfNodePtr, size_t> &parameter_index, in GetParameterOutputTensor() argument
1411 const auto &iter = parameter_index.find(node); in GetParameterOutputTensor()
1412 if (iter == parameter_index.end()) { in GetParameterOutputTensor()
1434 const std::map<AnfNodePtr, size_t> &parameter_index, in GetOpInputTensors() argument
1449 tensor = GetParameterOutputTensor(real_input, parameter_index, graph_inputs); in GetOpInputTensors()
1470 … const std::map<AnfNodePtr, size_t> &parameter_index, in GetOpInputTensorByIndex() argument
1485 return GetParameterOutputTensor(real_input, parameter_index, graph_inputs); in GetOpInputTensorByIndex()
2276 std::map<AnfNodePtr, size_t> parameter_index; in RunOpsInGraphImpl() local
[all …]
Dascend_session.cc1080 …::GetOpInputStubTensors(const CNodePtr &cnode, const std::map<AnfNodePtr, size_t> &parameter_index, in GetOpInputStubTensors() argument
1097 tensor = GetParameterOutputTensor(real_input, parameter_index, graph_inputs); in GetOpInputStubTensors()
1117 …sion::BuildOpsInGraph(const GraphId &graph_id, const std::map<AnfNodePtr, size_t> &parameter_index, in BuildOpsInGraph() argument
1132 … GetOpInputStubTensors(kernel, parameter_index, graph_inputs, op_output_info, &input_tensor_info); in BuildOpsInGraph()
/third_party/mindspore/mindspore/ccsrc/vm/
Dbackend.cc512 const std::map<AnfNodePtr, size_t> &parameter_index, in GetControlOpInput() argument
529 …nsor = graph_compiler->GetSingleOpInputTensorByIndex(backend_cnode, op_output_map, parameter_index, in GetControlOpInput()
602 const std::map<AnfNodePtr, size_t> &parameter_index, in RunControlOperator() argument
630 …GetControlOpInput(graph_compiler, cnode, kernel, op_output_map, parameter_index, graph_inputs, inp… in RunControlOperator()
720 std::map<AnfNodePtr, size_t> parameter_index; in RunGraphBySingleOp() local
723 graph_compiler_->GetParamAndOutputIndex(graph, inputs[graph_index], outputs, &parameter_index, in RunGraphBySingleOp()
747 …graph_compiler_->GetSingleOpInputTensors(kernel, op_output_map, parameter_index, inputs[graph_inde… in RunGraphBySingleOp()
757 …RunControlOperator(graph_compiler_, graph, kernel, op_output_map, parameter_index, inputs[graph_in… in RunGraphBySingleOp()
/third_party/mesa3d/src/compiler/glsl/glcpp/
Dglcpp.h144 int *parameter_index);
Dglcpp-parse.y1856 int parameter_index; in _glcpp_parser_expand_function() local
1901 &parameter_index)) { in _glcpp_parser_expand_function()
1903 argument = _argument_list_member_at(arguments, parameter_index); in _glcpp_parser_expand_function()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/
Dauto_monad.cc761 int parameter_index = 0; in GetParameterIndex() local
764 return parameter_index; in GetParameterIndex()
766 ++parameter_index; in GetParameterIndex()
/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver.cc554 uint32_t parameter_index = 0; in Function() local
573 Variable(param, VariableKind::kParameter, parameter_index++)); in Function()