/third_party/boost/tools/quickbook/src/ |
D | values.cpp | 41 value_node::value_node(tag_type t) : ref_count_(0), tag_(t), next_() {} in value_node() function in quickbook::detail::value_node 43 value_node::~value_node() {} in ~value_node() 45 file_ptr value_node::get_file() const { UNDEFINED_ERROR(); } in get_file() 46 string_iterator value_node::get_position() const { UNDEFINED_ERROR(); } in get_position() 47 int value_node::get_int() const { UNDEFINED_ERROR(); } in get_int() 48 quickbook::string_view value_node::get_quickbook() const in get_quickbook() 52 std::string value_node::get_encoded() const { UNDEFINED_ERROR(); } in get_encoded() 53 value_node* value_node::get_list() const { UNDEFINED_ERROR(); } in get_list() 55 bool value_node::empty() const { return false; } in empty() 56 bool value_node::check() const { return true; } in check() [all …]
|
D | values.hpp | 36 struct value_node struct 39 value_node(value_node const&); 40 value_node& operator=(value_node const&); 46 explicit value_node(tag_type); 47 virtual ~value_node(); 51 virtual value_node* clone() const = 0; 63 virtual bool equals(value_node*) const; 65 virtual value_node* get_list() const; 69 value_node* next_; argument 71 friend void intrusive_ptr_add_ref(value_node* ptr) in intrusive_ptr_add_ref() [all …]
|
/third_party/mindspore/mindspore/lite/tools/converter/import/ |
D | primitive_adjust.cc | 211 auto value_node = cnode->input(0)->cast<ValueNodePtr>(); in MoveAttrMapCommon() local 212 MS_ASSERT(value_node != nullptr); in MoveAttrMapCommon() 213 auto src_prim = GetValueNode<PrimitivePtr>(value_node); in MoveAttrMapCommon() 221 value_node->set_value(dst_prim); in MoveAttrMapCommon() 227 auto value_node = cnode->input(0)->cast<ValueNodePtr>(); in MoveAttrMapActivation() local 228 MS_ASSERT(value_node != nullptr); in MoveAttrMapActivation() 229 auto src_prim = GetValueNode<PrimitivePtr>(value_node); in MoveAttrMapActivation() 243 value_node->set_value(dst_prim); in MoveAttrMapActivation() 249 auto value_node = cnode->input(0)->cast<ValueNodePtr>(); in MoveAttrMapActivationGrad() local 250 MS_ASSERT(value_node != nullptr); in MoveAttrMapActivationGrad() [all …]
|
D | mindir_adjust.cc | 185 auto value_node = anf_node->cast<ValueNodePtr>(); in ValueNodeInt64Convert() local 186 MS_ASSERT(value_node != nullptr); in ValueNodeInt64Convert() 187 if (value_node->abstract() == nullptr) { in ValueNodeInt64Convert() 190 auto abstract_tensor = utils::cast<abstract::AbstractTensorPtr>(value_node->abstract()); in ValueNodeInt64Convert() 222 value_node->set_value(dest_tensor_info); in ValueNodeInt64Convert() 243 auto value_node = cnode->input(0)->cast<ValueNodePtr>(); in ComputeQuantParams() local 244 if (value_node == nullptr || value_node->value() == nullptr) { in ComputeQuantParams() 248 auto primitive = value_node->value()->cast<PrimitivePtr>(); in ComputeQuantParams() 250 if (utils::isa<FuncGraphPtr>(value_node->value())) { in ComputeQuantParams()
|
/third_party/mindspore/mindspore/lite/tools/anf_exporter/ |
D | fetch_content.cc | 114 int FetchFromTensorValue(const ValueNodePtr &value_node, const PrimitivePtr &primitive, converter::… in FetchFromTensorValue() argument 116 MS_ASSERT(value_node != nullptr && primitive != nullptr && data_info != nullptr); in FetchFromTensorValue() 117 auto valueAbstract = value_node->abstract(); in FetchFromTensorValue() 133 auto value = value_node->value(); in FetchFromTensorValue() 151 int FetchFromInt32OrInt64ImmValue(const ValueNodePtr &value_node, const PrimitivePtr &primitive, Da… in FetchFromInt32OrInt64ImmValue() argument 152 MS_ASSERT(value_node != nullptr && primitive != nullptr && data_info != nullptr); in FetchFromInt32OrInt64ImmValue() 157 auto value = value_node->value(); in FetchFromInt32OrInt64ImmValue() 167 int FetchFromBoolImmValue(const ValueNodePtr &value_node, const PrimitivePtr &primitive, DataInfo *… in FetchFromBoolImmValue() argument 168 MS_ASSERT(value_node != nullptr && primitive != nullptr && data_info != nullptr); in FetchFromBoolImmValue() 172 auto value = value_node->value(); in FetchFromBoolImmValue() [all …]
|
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/ |
D | special_op_eliminate.h | 432 ValueNodePtr value_node = node->cast<ValueNodePtr>(); in CheckNameSpaceVNode() local 433 if (value_node == nullptr) { in CheckNameSpaceVNode() 436 return GetValueNode<parse::NameSpacePtr>(value_node)->module() == str_value; in CheckNameSpaceVNode() 440 ValueNodePtr value_node = node->cast<ValueNodePtr>(); in CheckSymbolVNode() local 441 if (value_node == nullptr) { in CheckSymbolVNode() 444 return GetValueNode<parse::SymbolPtr>(value_node)->symbol() == str_value; in CheckSymbolVNode() 447 ValueNodePtr value_node = node->cast<ValueNodePtr>(); in CheckStrVNode() local 448 if (value_node == nullptr) { in CheckStrVNode() 451 return GetValueNode<StringImmPtr>(value_node)->value() == str_value; in CheckStrVNode() 507 auto value_node = rep->cast<ValueNodePtr>(); in OperatorHandle1() local [all …]
|
/third_party/mindspore/mindspore/lite/tools/converter/acl/mapper/ |
D | primitive_mapper.cc | 42 …ATUS PrimitiveMapper::GetValueNodeAndPrimFromCnode(const CNodePtr &cnode, ValueNodePtr *value_node, in GetValueNodeAndPrimFromCnode() argument 45 CHECK_NULL_RETURN(value_node); in GetValueNodeAndPrimFromCnode() 48 *value_node = cnode->input(0)->cast<ValueNodePtr>(); in GetValueNodeAndPrimFromCnode() 49 if (*value_node == nullptr) { in GetValueNodeAndPrimFromCnode() 53 *prim_ptr = GetValueNode<PrimitivePtr>(*value_node); in GetValueNodeAndPrimFromCnode() 153 ValueNodePtr value_node = nullptr; in MoveAttrMap() local 155 if (GetValueNodeAndPrimFromCnode(cnode, &value_node, &src_prim) != lite::RET_OK) { in MoveAttrMap() 164 value_node->set_value(dst_prim); in MoveAttrMap()
|
D | pad_fusion_mapper.cc | 34 ValueNodePtr value_node = nullptr; in Mapper() local 36 if (GetValueNodeAndPrimFromCnode(cnode, &value_node, &src_prim) != lite::RET_OK) { in Mapper() 47 value_node->set_value(dst_prim); in Mapper() 60 value_node->set_value(dst_prim); in Mapper()
|
D | eltwise_mapper.cc | 33 auto value_node = cnode->input(0)->cast<ValueNodePtr>(); in AddAttrForDynInputPrimitive() local 34 MS_ASSERT(value_node != nullptr); in AddAttrForDynInputPrimitive() 35 auto prim = GetValueNode<PrimitivePtr>(value_node); in AddAttrForDynInputPrimitive()
|
D | stack_mapper.cc | 36 auto value_node = cnode->input(0)->cast<ValueNodePtr>(); in AddAttrForDynInputPrimitive() local 37 MS_ASSERT(value_node != nullptr); in AddAttrForDynInputPrimitive() 38 auto prim = GetValueNode<PrimitivePtr>(value_node); in AddAttrForDynInputPrimitive()
|
D | concat_mapper.cc | 36 auto value_node = cnode->input(0)->cast<ValueNodePtr>(); in AddAttrForDynInputPrimitive() local 37 MS_ASSERT(value_node != nullptr); in AddAttrForDynInputPrimitive() 38 auto prim = GetValueNode<PrimitivePtr>(value_node); in AddAttrForDynInputPrimitive()
|
D | stridedslice_mapper.cc | 27 ValueNodePtr value_node = nullptr; in Mapper() local 29 if (GetValueNodeAndPrimFromCnode(cnode, &value_node, &src_prim) != lite::RET_OK) { in Mapper() 40 value_node->set_value(dst_prim); in Mapper()
|
D | conv2d_fusion_mapper.cc | 24 ValueNodePtr value_node = nullptr; in Mapper() local 26 if (GetValueNodeAndPrimFromCnode(cnode, &value_node, &src_prim) != lite::RET_OK) { in Mapper() 44 value_node->set_value(dst_prim); in Mapper()
|
D | gather_fusion_mapper.cc | 45 ValueNodePtr value_node = NewValueNode<int64_t>(axis); in Mapper() local 46 if (value_node == nullptr) { in Mapper() 50 cnode->set_input(kNameGatherInputNum - 1, value_node); in Mapper()
|
D | conv2d_transpose_fusion_mapper.cc | 26 ValueNodePtr value_node = nullptr; in Mapper() local 28 if (GetValueNodeAndPrimFromCnode(cnode, &value_node, &src_prim) != lite::RET_OK) { in Mapper() 48 value_node->set_value(dst_prim); in Mapper()
|
D | cast_mapper.cc | 50 ValueNodePtr value_node = NewValueNode(type_ptr); in Mapper() local 51 if (value_node == nullptr) { in Mapper() 55 cnode->set_input(kNameCastInputNum - 1, value_node); in Mapper()
|
D | maxpool_fusion_mapper.cc | 26 ValueNodePtr value_node = nullptr; in Mapper() local 28 if (GetValueNodeAndPrimFromCnode(cnode, &value_node, &src_prim) != lite::RET_OK) { in Mapper() 52 value_node->set_value(dst_prim); in Mapper()
|
D | transpose_mapper.cc | 49 ValueNodePtr value_node = NewValueNode<std::vector<int64_t>>(perm); in Mapper() local 50 if (value_node == nullptr) { in Mapper() 54 cnode->set_input(kCommonInputNum - 1, value_node); in Mapper()
|
/third_party/mindspore/mindspore/lite/tools/converter/parser/onnx/ |
D | onnx_pad_adjust.cc | 66 ValueNodePtr value_node = NewValueNode(reshape_prim); in NewReshapeOpNode() local 67 MS_CHECK_TRUE_MSG(value_node != nullptr, nullptr, "create valuenode return nullptr"); in NewReshapeOpNode() 71 std::vector<AnfNodePtr> op_inputs = {value_node, input_node, new_parameter}; in NewReshapeOpNode() 88 ValueNodePtr value_node = NewValueNode(transpose_prim); in NewTransposeOpNode() local 89 MS_CHECK_TRUE_MSG(value_node != nullptr, nullptr, "create valuenode return nullptr"); in NewTransposeOpNode() 93 std::vector<AnfNodePtr> op_inputs = {value_node, input_node, new_parameter}; in NewTransposeOpNode()
|
/third_party/PyYAML/lib/yaml/ |
D | constructor.py | 138 for key_node, value_node in node.value: 143 value = self.construct_object(value_node, deep=deep) 153 for key_node, value_node in node.value: 155 value = self.construct_object(value_node, deep=deep) 175 for key_node, value_node in node.value: 177 return self.construct_scalar(value_node) 184 key_node, value_node = node.value[index] 187 if isinstance(value_node, MappingNode): 188 self.flatten_mapping(value_node) 189 merge.extend(value_node.value) [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/enhancer/ |
D | add_placeholder_for_dynamic_rnn.cc | 58 auto value_node = NewValueNode(value); in Process() local 59 MS_EXCEPTION_IF_NULL(value_node); in Process() 60 value_node->set_abstract(std::make_shared<abstract::AbstractNone>()); in Process() 61 auto new_node = kernel_graph->NewValueNode(value_node); in Process()
|
D | add_placeholder_for_dynamic_gru.cc | 57 auto value_node = NewValueNode(value); in Process() local 58 MS_EXCEPTION_IF_NULL(value_node); in Process() 59 value_node->set_abstract(std::make_shared<abstract::AbstractNone>()); in Process() 60 auto new_node = kernel_graph->NewValueNode(value_node); in Process()
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/graph_util/ |
D | generate_graph.cc | 75 auto value_node = NewValueNode(value_ptr); in ValuePtrToAnfNodePtr() local 76 MS_EXCEPTION_IF_NULL(value_node); in ValuePtrToAnfNodePtr() 77 return value_node->cast<AnfNodePtr>(); in ValuePtrToAnfNodePtr() 180 auto value_node = NewValueNode(pyop_instance); in NewOpInst() local 181 return value_node->cast<AnfNodePtr>(); in NewOpInst() 191 auto value_node = NewValueNode(pyop_instance); in NewOpInst() local 192 return value_node->cast<AnfNodePtr>(); in NewOpInst()
|
/third_party/mindspore/mindspore/ccsrc/runtime/framework/ |
D | graph_compiler.cc | 107 size_t output_idx, const ValueNodePtr &value_node) { in CreateDeviceAddressForTensorValue() argument 110 MS_EXCEPTION_IF_NULL(value_node); in CreateDeviceAddressForTensorValue() 127 value_node.get()); in CreateDeviceAddressForTensorValue() 132 size_t tensor_size = AnfAlgo::GetOutputTensorMemSize(value_node, output_idx); in CreateDeviceAddressForTensorValue() 133 TypeId output_type_id = AnfAlgo::GetOutputDeviceDataType(value_node, output_idx); in CreateDeviceAddressForTensorValue() 135 output_type_id = AnfAlgo::GetOutputInferDataType(value_node, output_idx); in CreateDeviceAddressForTensorValue() 137 std::string output_format = AnfAlgo::GetOutputFormat(value_node, output_idx); in CreateDeviceAddressForTensorValue() 142 AnfAlgo::SetOutputAddr(address, output_idx++, value_node.get()); in CreateDeviceAddressForTensorValue() 149 for (const ValueNodePtr &value_node : graph->graph_value_nodes()) { in CreateValueNodeDeviceAddress() local 150 MS_EXCEPTION_IF_NULL(value_node); in CreateValueNodeDeviceAddress() [all …]
|
/third_party/mindspore/mindspore/lite/tools/converter/parser/ |
D | conv1d_inout_adjust.cc | 43 ValueNodePtr value_node = NewValueNode(unsqueeze_prim); in NewUnsqueezeOpNode() local 44 MS_CHECK_TRUE_MSG(value_node != nullptr, nullptr, "new valueNode failed."); in NewUnsqueezeOpNode() 45 std::vector<AnfNodePtr> op_inputs = {value_node, input_node}; in NewUnsqueezeOpNode() 57 ValueNodePtr value_node = NewValueNode(squeeze_prim); in NewSqueezeOpNode() local 58 MS_CHECK_TRUE_MSG(value_node != nullptr, nullptr, "new valueNode failed."); in NewSqueezeOpNode() 59 std::vector<AnfNodePtr> op_inputs = {value_node, input_node}; in NewSqueezeOpNode()
|