/third_party/mindspore/mindspore/core/ir/ |
D | value.h | 72 class MS_CORE_API ValueTuple : public ValueSequeue { 74 explicit ValueTuple(const std::vector<ValuePtr> &elements) : ValueSequeue(elements) {} in ValueTuple() function 75 ValueTuple(const std::initializer_list<ValuePtr> &elements) : ValueSequeue(elements) {} in ValueTuple() function 76 ~ValueTuple() override = default; 77 MS_DECLARE_PARENT(ValueTuple, ValueSequeue) 83 using ValueTuplePtr = std::shared_ptr<ValueTuple>; 98 inline ValuePtr MakeValue(const std::vector<ValuePtr> &v) { return std::make_shared<ValueTuple>(v);… in MakeValue() 99 inline ValuePtr MakeValue(std::initializer_list<ValuePtr> v) { return std::make_shared<ValueTuple>(… in MakeValue() 110 return std::make_shared<ValueTuple>(list);
|
D | value_extends.cc | 44 abstract::AbstractBasePtr ValueTuple::ToAbstract() { in ToAbstract()
|
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/ |
D | op_adapter_util.h | 49 if (!value->isa<ValueTuple>() && !value->isa<ValueList>()) { in ConvertAnyUtil() 53 …auto vec = value->isa<ValueTuple>() ? value->cast<ValueTuplePtr>()->value() : value->cast<ValueLis… in ConvertAnyUtil()
|
D | op_adapter_util.cc | 134 …auto vec = value->isa<ValueTuple>() ? value->cast<ValueTuplePtr>()->value() : value->cast<ValueLis… in VectorToTensorUtil() 185 } else if (value->isa<ValueList>() || value->isa<ValueTuple>()) { in ConvertAnyUtil()
|
/third_party/mindspore/mindspore/core/ops/ |
D | getnext.cc | 36 …std::vector<ValuePtr> shape = shape_attr->isa<ValueTuple>() ? shape_attr->cast<ValueTuplePtr>()->v… in GetShapeVector() 39 std::vector<ValuePtr> shape_elements_list = shape_elements->isa<ValueTuple>() in GetShapeVector()
|
D | reduce_sum.cc | 40 if (axis->isa<ValueTuple>() || axis->isa<ValueList>()) { in InferImplReduceFuncCalShape() 42 …axis->isa<ValueTuple>() ? axis->cast<ValueTuplePtr>()->value() : axis->cast<ValueListPtr>()->value… in InferImplReduceFuncCalShape() 162 axis_value = std::make_shared<ValueTuple>(value_list); in InferShape()
|
/third_party/mindspore/tests/ut/cpp/ops/ |
D | test_ops_addn.cc | 40 auto input_tuple = std::make_shared<ValueTuple>(std::vector<ValuePtr>{tensor_x1, tensor_x2}); in TEST_F() 73 …auto input_tuple = std::make_shared<ValueTuple>(std::vector<ValuePtr>{tensor_x1, tensor_x2, tensor… in TEST_F()
|
D | test_ops_concat.cc | 43 …auto input_tuple = std::make_shared<ValueTuple>(std::vector<ValuePtr>{tensor_x1, tensor_x2, tensor… in TEST_F() 77 …auto input_tuple = std::make_shared<ValueTuple>(std::vector<ValuePtr>{tensor_x1, tensor_x2, tensor… in TEST_F()
|
D | test_ops_assert.cc | 54 auto inputs = std::make_shared<ValueTuple>(inputs_); in TEST_F() 85 auto inputs = std::make_shared<ValueTuple>(inputs_); in TEST_F()
|
D | test_ops_pack.cc | 43 auto input_ = std::make_shared<ValueTuple>(std::vector<ValuePtr>{input0, input1}); in TEST_F()
|
D | test_ops_merge.cc | 43 auto input = std::make_shared<ValueTuple>(inputs_); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/ |
D | convert_const_input_to_tensor_input.cc | 40 } else if (value->isa<ValueTuple>()) { in CreateTensorInput() 78 if (IsValueNode<Scalar>(input_node) || IsValueNode<ValueTuple>(input_node)) { in ConstInputToTensorInput()
|
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/ |
D | reduce_eliminate.h | 77 auto new_shape = std::make_shared<ValueTuple>(elements); in operator() 137 if (IsValueNode<ValueTuple>(vnode)) { in Visit()
|
D | special_op_eliminate.h | 460 if (!value->isa<ValueTuple>()) { in FillGetItem() 487 if (value->isa<ValueTuple>()) { in FillZero() 493 out = std::make_shared<ValueTuple>(value_list); in FillZero() 562 if (!value_node->value()->isa<ValueTuple>()) { in OperatorHandle4()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/other/ |
D | boundingbox_encode_gpu_kernel.h | 105 if (means->isa<ValueTuple>() || means->isa<ValueList>()) { in Init() 117 if (stds->isa<ValueTuple>() || stds->isa<ValueList>()) { in Init()
|
D | boundingbox_decode_gpu_kernel.h | 106 if (means->isa<ValueTuple>() || means->isa<ValueList>()) { in Init() 119 if (stds->isa<ValueTuple>() || stds->isa<ValueList>()) { in Init()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/ |
D | boundingbox_encode_cpu_kernel.cc | 31 if (AnfAlgo::GetCNodePrimitive(kernel_node)->GetAttr("means")->isa<ValueTuple>() || in InitKernel() 43 if (AnfAlgo::GetCNodePrimitive(kernel_node)->GetAttr("stds")->isa<ValueTuple>() || in InitKernel()
|
D | boundingbox_decode_cpu_kernel.cc | 31 if (AnfAlgo::GetCNodePrimitive(kernel_node)->GetAttr("means")->isa<ValueTuple>() || in InitKernel() 43 if (AnfAlgo::GetCNodePrimitive(kernel_node)->GetAttr("stds")->isa<ValueTuple>() || in InitKernel()
|
/third_party/mindspore/mindspore/ccsrc/utils/ |
D | convert_utils.cc | 281 if (value->isa<ValueTuple>()) { in TensorValueToTensor() 290 } else if (element->isa<ValueTuple>()) { in TensorValueToTensor() 308 } else if (value->isa<ValueTuple>()) { in CountValueNum()
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ |
D | step_parallel_utils.cc | 88 } else if (IsValueNode<ValueTuple>(node)) { in GetValueListShape() 108 if (IsValueNode<ValueList>(node) || IsValueNode<ValueTuple>(node)) { in GetNodeShape()
|
/third_party/mindspore/tests/ut/cpp/parallel/ |
D | step_parallel_test.cc | 143 ValueTuplePtr var = std::make_shared<ValueTuple>(elements); in Make_Manager() 162 ValueTuplePtr var2 = std::make_shared<ValueTuple>(elements2); in Make_Manager() 187 ValueTuplePtr var_t = std::make_shared<ValueTuple>(elements_t); in Make_Manager() 195 ValueTuplePtr var_t2 = std::make_shared<ValueTuple>(elements_t2); in Make_Manager() 228 ValueTuplePtr strategy_tuple = std::make_shared<ValueTuple>(elements); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/ |
D | resolve.cc | 230 if (elem->isa<ValueTuple>() || elem->isa<ValueList>()) { in IsAllFuncInValueSequence() 250 if (elem->isa<ValueTuple>() || elem->isa<ValueList>()) { in TransformToMakeTupleNodes() 305 if (IsValueNode<ValueTuple>(resolved_node) || IsValueNode<ValueList>(resolved_node)) { in ResolveObjectAndAddToManager()
|
/third_party/mindspore/tests/ut/cpp/pipeline/static_analysis/ |
D | data_test.cc | 77 …ASSERT_EQ(*func_tuple_built, ValueTuple(std::vector<ValuePtr>{prim::kPrimReturn, prim::kPrimScalar… in TEST_F() 87 …ASSERT_EQ(*func_tuple_built, ValueTuple(std::vector<ValuePtr>{std::make_shared<Int64Imm>(1), prim:… in TEST_F()
|
/third_party/mindspore/tests/ut/cpp/ir/ |
D | value_test.cc | 75 ValuePtr tv = std::make_shared<ValueTuple>(std::vector<ValuePtr>({boolv, i64v, f32v, sv, vv})); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/graph_util/ |
D | node_info.cc | 68 (IsValueNode<ValueList>(node_inputs[1]) || IsValueNode<ValueTuple>(node_inputs[1]))) { in ExtractInputParameterByNode() 158 (IsValueNode<ValueList>(node_inputs[1]) || IsValueNode<ValueTuple>(node_inputs[1]))) { in ExtractInputTypeLengthByNode()
|