Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ops_info/
Dslice_info.cc34 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()
Dactivation_info.cc145 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()
Dstrided_slice_info.cc50 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()
Dconv2d_info.cc871 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()
Dactivation_info.h241 Status InferAxis(const ValueTuplePtr &value_tuple);
/third_party/mindspore/mindspore/ccsrc/utils/
Dconvert_utils.cc282 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()
Dconvert_utils.h79 size_t CountValueNum(const ValueTuplePtr &value_tuple);
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/
Dconst_to_attr_strided_slice_grad.cc52 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/
Dbackend.cc146 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/
Dspecial_op_eliminate.h464 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()
Dincorporate_getitem.h161 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/
Dhelper.cc224 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()
Dhelper.h165 tensor::TensorPtr CreateTupleTensor(const ValueTuplePtr &value_tuple);
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dkernel_graph.cc630 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()
Dsession_basic.cc1386 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()
Danf_runtime_algorithm.cc370 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/
Dkernel_select_graph_kernel.cc174 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/
Dkpynative.cc474 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/
Drec_generate_strategy.cc369 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/
Dcontrol_node_parser.cc650 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/
Dprim.cc311 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/
Dgmock-matchers.h616 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/
Dpynative_execute.cc432 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/
Dstep_parallel.cc1331 ValueTuplePtr value_tuple = elements[index]->cast<ValueTuplePtr>(); in ExtractStrategy() local
1332 std::vector<ValuePtr> value_vector = value_tuple->value(); in ExtractStrategy()