/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ops_info/ |
D | slice_info.cc | 34 ValueTuplePtr value_tuple = input_value->cast<ValueTuplePtr>(); in GetInput() local 35 if (value_tuple == nullptr) { in GetInput() 40 for (auto &element : value_tuple->value()) { in GetInput() 206 AnfNodePtr CreateValueTupleAndNodePtr(const std::vector<int64_t> &value_tuple) { in CreateValueTupleAndNodePtr() argument 207 auto value_ptr = MakeValue(value_tuple)->cast<ValueTuplePtr>(); in CreateValueTupleAndNodePtr()
|
D | activation_info.cc | 145 ValueTuplePtr value_tuple = iter->second->cast<ValueTuplePtr>(); in GetAttrs() local 146 if (value_tuple == nullptr) { in GetAttrs() 150 std::vector<ValuePtr> value_vector = value_tuple->value(); in GetAttrs() 493 Status SqueezeInfo::InferAxis(const ValueTuplePtr &value_tuple) { in InferAxis() argument 495 auto axis_list = value_tuple->value(); in InferAxis() 534 auto value_tuple = iter->second->cast<ValueTuplePtr>(); in GetAttrs() local 535 MS_EXCEPTION_IF_NULL(value_tuple); in GetAttrs() 536 InferAxis(value_tuple); in GetAttrs()
|
D | strided_slice_info.cc | 50 ValueTuplePtr value_tuple = input_value->cast<ValueTuplePtr>(); in GetInput() local 51 if (value_tuple == nullptr) { in GetInput() 56 for (auto &element : value_tuple->value()) { in GetInput()
|
D | conv2d_info.cc | 871 auto value_tuple = input_value_[2]->cast<ValueTuplePtr>(); in GetOutShape() local 872 if (value_tuple == nullptr) { in GetOutShape() 876 elements = value_tuple->value(); in GetOutShape()
|
D | activation_info.h | 241 Status InferAxis(const ValueTuplePtr &value_tuple);
|
/third_party/mindspore/mindspore/ccsrc/utils/ |
D | convert_utils.cc | 282 auto value_tuple = value->cast<ValueTuplePtr>(); in TensorValueToTensor() local 283 MS_EXCEPTION_IF_NULL(value_tuple); in TensorValueToTensor() 284 for (size_t i = 0; i < value_tuple->size(); ++i) { in TensorValueToTensor() 285 ValuePtr element = value_tuple->value()[i]; in TensorValueToTensor() 301 size_t CountValueNum(const ValueTuplePtr &value_tuple) { in CountValueNum() argument 302 MS_EXCEPTION_IF_NULL(value_tuple); in CountValueNum() 304 const auto &value_list = value_tuple->value(); in CountValueNum()
|
D | convert_utils.h | 79 size_t CountValueNum(const ValueTuplePtr &value_tuple);
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/ |
D | const_to_attr_strided_slice_grad.cc | 52 auto value_tuple = value->cast<ValueTuplePtr>(); in GetStridesValues() local 53 if (value_tuple == nullptr) { in GetStridesValues() 57 *strides_values = value_tuple->value(); in GetStridesValues()
|
/third_party/mindspore/mindspore/ccsrc/vm/ |
D | backend.cc | 146 auto value_tuple = value->cast<ValueTuplePtr>(); in PushInputTensor() local 147 MS_EXCEPTION_IF_NULL(value_tuple); in PushInputTensor() 148 auto tuple_value = value_tuple->value(); in PushInputTensor() 575 auto value_tuple = input_value->cast<ValueTuplePtr>(); in ConvertValueTupleToTensor() local 576 MS_EXCEPTION_IF_NULL(value_tuple); in ConvertValueTupleToTensor() 577 tensor::TensorPtr tensor_ptr = opt::CreateTupleTensor(value_tuple); in ConvertValueTupleToTensor() 649 auto value_tuple = value->cast<ValueTuplePtr>(); in TensorValueToVector() local 650 MS_EXCEPTION_IF_NULL(value_tuple); in TensorValueToVector() 651 for (size_t i = 0; i < value_tuple->size(); ++i) { in TensorValueToVector() 652 ValuePtr element = value_tuple->value()[i]; in TensorValueToVector()
|
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/ |
D | special_op_eliminate.h | 464 auto value_tuple = value->cast<ValueTuplePtr>(); in FillGetItem() local 466 MS_LOG(DEBUG) << "Fill getitem" << idx_t << (*value_tuple)[idx_t]->ToString(); in FillGetItem() 467 return (*value_tuple)[idx_t]; in FillGetItem() 489 auto value_tuple = value->cast<ValueTuplePtr>(); in FillZero() local 490 for (size_t i = 0; i < value_tuple->size(); i++) { in FillZero() 491 value_list.push_back(FillZero((*value_tuple)[i])); in FillZero()
|
D | incorporate_getitem.h | 161 const auto &value_tuple = GetValueNode<ValueTuplePtr>(output); in GetOutputSize() local 162 if (value_tuple == nullptr) { in GetOutputSize() 165 return value_tuple->size(); in GetOutputSize() 245 auto value_tuple = GetValueNode<ValueTuplePtr>(new_fg_output); in ShrinkUnsedOutput() local 246 if (value_tuple == nullptr) { in ShrinkUnsedOutput() 250 before_shrink_inputs_size = value_tuple->size(); in ShrinkUnsedOutput() 252 … [new_fg_output, value_tuple, before_shrink_inputs_size](const auto &node_and_index) { in ShrinkUnsedOutput() 257 return (*value_tuple)[node_and_index.index]; in ShrinkUnsedOutput()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/ |
D | helper.cc | 224 tensor::TensorPtr CreateTupleTensor(const ValueTuplePtr &value_tuple) { in CreateTupleTensor() argument 225 MS_EXCEPTION_IF_NULL(value_tuple); in CreateTupleTensor() 227 if (value_tuple->value().empty()) { in CreateTupleTensor() 231 ValuePtr v = *(value_tuple->value().begin()); in CreateTupleTensor() 241 tensor = CreateTensorWithValueTuple<int32_t>(value_tuple, kInt32, sizeof(int32_t)); in CreateTupleTensor() 243 tensor = CreateTensorWithValueTuple<int64_t>(value_tuple, kInt64, sizeof(int64_t)); in CreateTupleTensor() 245 tensor = CreateTensorWithValueTuple<float>(value_tuple, kFloat32, sizeof(float)); in CreateTupleTensor()
|
D | helper.h | 165 tensor::TensorPtr CreateTupleTensor(const ValueTuplePtr &value_tuple);
|
/third_party/mindspore/mindspore/ccsrc/backend/session/ |
D | kernel_graph.cc | 630 auto value_tuple = value->cast<ValueTuplePtr>(); in TransValueNodeTuple() local 632 MS_EXCEPTION_IF_NULL(value_tuple); in TransValueNodeTuple() 633 if (tuple_abstract->size() != value_tuple->size()) { in TransValueNodeTuple() 635 << " is not equal to value size:" << value_tuple->size(); in TransValueNodeTuple() 640 … make_tuple_inputs.push_back(TransValueNodeTuple((*tuple_abstract)[index], (*value_tuple)[index])); in TransValueNodeTuple()
|
D | session_basic.cc | 1386 auto value_tuple = value->cast<ValueTuplePtr>(); in GetValueNodeOutputTensor() local 1387 MS_EXCEPTION_IF_NULL(value_tuple); in GetValueNodeOutputTensor() 1388 if (output_index >= value_tuple->size()) { in GetValueNodeOutputTensor() 1391 auto tensor_value = value_tuple->value()[output_index]; in GetValueNodeOutputTensor()
|
D | anf_runtime_algorithm.cc | 370 auto value_tuple = value->cast<ValueTuplePtr>(); in GetAllOutputWithIndex() local 371 auto value_tuple_size = CountValueNum(value_tuple); in GetAllOutputWithIndex()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/ |
D | kernel_select_graph_kernel.cc | 174 auto value_tuple = dyn_cast<ValueTuple>(axis_value); in UpdateFracNZReduceOp() local 175 for (const auto &item : value_tuple->value()) { in UpdateFracNZReduceOp()
|
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/ |
D | kpynative.cc | 474 auto value_tuple = value->cast<ValueTuplePtr>(); in ShallowCopyValue() local 475 …(void)std::transform(value_tuple->value().begin(), value_tuple->value().end(), std::back_inserter(… in ShallowCopyValue()
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/auto_parallel/rec_core/ |
D | rec_generate_strategy.cc | 369 ValueTuplePtr value_tuple = iter->second->cast<ValueTuplePtr>(); in PrepareAxisRelatedStrategy() local 370 if (value_tuple == nullptr) { in PrepareAxisRelatedStrategy() 373 std::vector<ValuePtr> value_vector = value_tuple->value(); in PrepareAxisRelatedStrategy()
|
/third_party/mindspore/mindspore/ccsrc/runtime/framework/ |
D | control_node_parser.cc | 650 auto value_tuple = inputs[i]->cast<ValueNodePtr>()->value()->cast<ValueTuplePtr>(); in FetchOutputSizebyCallNode() local 651 MS_EXCEPTION_IF_NULL(value_tuple); in FetchOutputSizebyCallNode() 652 auto tuple_value = value_tuple->value(); in FetchOutputSizebyCallNode()
|
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/ |
D | prim.cc | 311 py::tuple value_tuple(len); in AbstractTupleToPython() local 324 value_tuple[i] = out[ATTR_VALUE]; in AbstractTupleToPython() 347 dic[ATTR_VALUE] = value_tuple; in AbstractTupleToPython()
|
/third_party/googletest/googlemock/include/gmock/ |
D | gmock-matchers.h | 616 const ValueTuple& value_tuple) { in Matches() argument 617 return TuplePrefix<N - 1>::Matches(matcher_tuple, value_tuple) && in Matches() 618 std::get<N - 1>(matcher_tuple).Matches(std::get<N - 1>(value_tuple)); in Matches() 678 const ValueTuple& value_tuple) { in TupleMatches() argument 685 value_tuple); in TupleMatches()
|
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/ |
D | pynative_execute.cc | 432 auto value_tuple = input_value->cast<ValueTuplePtr>(); in ConvertValueTupleToTensor() local 433 MS_EXCEPTION_IF_NULL(value_tuple); in ConvertValueTupleToTensor() 434 tensor::TensorPtr tensor_ptr = opt::CreateTupleTensor(value_tuple); in ConvertValueTupleToTensor()
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ |
D | step_parallel.cc | 1331 ValueTuplePtr value_tuple = elements[index]->cast<ValueTuplePtr>(); in ExtractStrategy() local 1332 std::vector<ValuePtr> value_vector = value_tuple->value(); in ExtractStrategy()
|