Home
last modified time | relevance | path

Searched refs:perm_value (Results 1 – 11 of 11) sorted by relevance

/third_party/mindspore/mindspore/lite/tools/optimizer/graph/
Dunused_transpose_node_remove_pass.cc49 auto perm_value = perm_param->default_param()->cast<tensor::TensorPtr>(); in GetTransposePerm() local
50 if (perm_value == nullptr) { in GetTransposePerm()
53 perm.resize(perm_value->shape()[0]); in GetTransposePerm()
54 if (memcpy_s(perm.data(), perm_value->Size(), perm_value->data_c(), perm_value->Size()) != EOK) { in GetTransposePerm()
Dslice_prepose_pass.cc165 auto perm_value = perm_param->default_param()->cast<tensor::TensorPtr>(); in GetTransposePerm() local
166 if (perm_value == nullptr) { in GetTransposePerm()
169 MS_CHECK_TRUE_MSG(perm_value->shape().size() != 0, {}, "shape is empty"); in GetTransposePerm()
170 perm.resize(perm_value->shape()[0]); in GetTransposePerm()
171 if (memcpy_s(perm.data(), perm_value->Size(), perm_value->data_c(), perm_value->Size()) != EOK) { in GetTransposePerm()
/third_party/mindspore/mindspore/core/ops/
Dtranspose.cc43 auto perm_value = input_args[1]->BuildValue(); in InferShape() local
44 MS_EXCEPTION_IF_NULL(perm_value); in InferShape()
45 if (perm_value->isa<tensor::Tensor>()) { in InferShape()
46 p_value = CheckAndConvertUtils::CheckTensorIntValue("perm value", perm_value, op_name); in InferShape()
48 p_value = CheckAndConvertUtils::CheckAttrTupleInt("perm value", perm_value, op_name); in InferShape()
/third_party/mindspore/mindspore/lite/tools/converter/parser/onnx/
Donnx_transpose_parser.cc38 auto perm_value = MakeValue(perm); in Parse() local
39 MS_CHECK_TRUE_MSG(perm_value != nullptr, nullptr, "MakeValue failed"); in Parse()
40 prim->AddAttr("perm", perm_value); in Parse()
Donnx_inputs_adjust.cc205 auto perm_value = perm_param->default_param()->cast<tensor::TensorPtr>(); in ReplaceTransposeWithGraphInput() local
206 MS_ASSERT(perm_value != nullptr); in ReplaceTransposeWithGraphInput()
207 if (perm_value->shape().empty()) { in ReplaceTransposeWithGraphInput()
211 std::vector<int> perm(perm_value->shape()[0]); in ReplaceTransposeWithGraphInput()
212 …if (memcpy_s(perm.data(), perm_value->shape()[0] * sizeof(int), perm_value->data_c(), perm_value->… in ReplaceTransposeWithGraphInput()
/third_party/selinux/checkpolicy/
Dmodule_compiler.c735 int add_perm_to_class(uint32_t perm_value, uint32_t class_value) in add_perm_to_class() argument
740 assert(perm_value >= 1); in add_perm_to_class()
757 perm_value - 1, 1)) { in add_perm_to_class()
1140 static int is_perm_in_scope_index(uint32_t perm_value, uint32_t class_value, in is_perm_in_scope_index() argument
1147 perm_value - 1)) { in is_perm_in_scope_index()
1153 static int is_perm_in_stack(uint32_t perm_value, uint32_t class_value, in is_perm_in_stack() argument
1162 (perm_value, class_value, &decl->required) in is_perm_in_stack()
1163 || is_perm_in_scope_index(perm_value, class_value, in is_perm_in_stack()
1173 return is_perm_in_stack(perm_value, class_value, stack->parent); in is_perm_in_stack()
Dmodule_compiler.h49 int add_perm_to_class(uint32_t perm_value, uint32_t class_value);
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/mindir/
Dconv2d_unify_mindir.cc87 auto perm_value = kernel_graph->NewValueNode(abstract, perm_value_tuple); in CreatePermValueNode() local
88 MS_EXCEPTION_IF_NULL(perm_value); in CreatePermValueNode()
89 kernel_graph->AddValueNodeToGraph(perm_value); in CreatePermValueNode()
90 return perm_value; in CreatePermValueNode()
/third_party/mindspore/mindspore/lite/tools/converter/parser/
Dlstm_adjust_pass.cc282 std::vector<int> perm_value = {0, kOutputBatchIndex, 1, kOutputHiddenIndex}; in Run() local
283 …auto transpose_perm = BuildIntVecParameterNode(func_graph, perm_value, "transpose_" + get_item_nam… in Run()
/third_party/selinux/libsepol/src/
Dlink.c78 uint32_t perm_value; member
2016 uint32_t perm_value = j + 1; in is_decl_requires_met() local
2033 fparg.valuep = perm_value; in is_decl_requires_met()
2050 req->perm_value = perm_value; in is_decl_requires_met()
2084 fparg.valuep = req.perm_value; in debug_requirements()
2145 fparg.valuep = req->perm_value; in print_missing_requirements()
/third_party/mindspore/mindspore/ccsrc/transform/express_ir/
Donnx_exporter.cc833 auto perm_value = dyn_cast<ValueNode>(input_perm)->value(); in ExportPrimTranspose() local
834 auto int_ptr = dyn_cast<Int32Imm>(perm_value); in ExportPrimTranspose()
836 auto tuple_ptr = dyn_cast<ValueTuple>(perm_value); in ExportPrimTranspose()