Home
last modified time | relevance | path

Searched refs:getitem (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/mindspore/mindspore/ops/composite/multitype_ops/
Dgetitem_impl.py22 getitem = base.MultitypeFuncGraph('getitem', True) variable
76 @getitem.register("Tuple", "Number")
91 @getitem.register("Tuple", "Slice")
106 @getitem.register("Tuple", "Tensor")
122 @getitem.register("List", "Number")
137 @getitem.register("Dictionary", "String")
152 @getitem.register("Tensor", "Number")
167 @getitem.register("Tensor", "None")
182 @getitem.register("Tensor", "Slice")
197 @getitem.register("Tensor", "Tensor")
[all …]
D__init__.py25 from .getitem_impl import getitem
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/
Doptimize_assign.cc76 …thToParamUser(const AnfNodePtr &gk_node, const AnfNodePtr &param_user, const AnfNodePtr &getitem) { in HasPathToParamUser() argument
80 auto IncludeUser = [&result, &gk_node, &getitem](const AnfNodePtr &node) { in HasPathToParamUser()
81 if (node == getitem) { in HasPathToParamUser()
94 void KeepExecOrder(const FuncGraphPtr &func_graph, const AnfNodePtr &getitem, const AnfNodePtr &ass… in KeepExecOrder() argument
99 AnfNodePtrList update_state_inputs = {NewValueNode(prim::kPrimUpdateState), u, getitem}; in KeepExecOrder()
101 update_state_node->set_abstract(getitem->abstract()); in KeepExecOrder()
110 mng->Replace(getitem, load_node); in KeepExecOrder()
113 int64_t GetitemIndex(const AnfNodePtr &getitem) { in GetitemIndex() argument
114 auto index_node = getitem->cast<CNodePtr>()->input(kInputNodeOutputIndexInTupleGetItem); in GetitemIndex()
124 auto getitem = getitem_iter.first; in UpdateUsersOfGraphKernel() local
[all …]
Deliminate_redundant_output.cc46 auto getitem = getitem_node->cast<CNodePtr>(); in SetIndex() local
47 MS_EXCEPTION_IF_NULL(getitem); in SetIndex()
52 getitem->set_input(kInputNodeOutputIndexInTupleGetItem, idx_node); in SetIndex()
75 auto &getitem = user.first; in GetGraphKernelGetitemList() local
76 auto idx = GetIndex(getitem); in GetGraphKernelGetitemList()
78 …TION) << "Index of GetItem is out of range of MakeTuple. getitem node: " << getitem->DebugString(); in GetGraphKernelGetitemList()
81 mng->Replace(getitem, (*getitem_list)[idx]); in GetGraphKernelGetitemList()
84 (*getitem_list)[idx] = getitem; in GetGraphKernelGetitemList()
214 void EliminateHangingOutput::UpdateGetitemIndex(const AnfNodePtr &getitem, size_t offset) const { in UpdateGetitemIndex() argument
216 MS_EXCEPTION_IF_NULL(getitem); in UpdateGetitemIndex()
[all …]
Deliminate_redundant_output.h44 void UpdateGetitemIndex(const AnfNodePtr &getitem, size_t offset) const;
Dupdate_state_formatter.cc162 const AnfNodePtr &getitem = getitems_[i]; in FindIndexesToUpdateState() local
163 if (getitem == nullptr) continue; in FindIndexesToUpdateState()
165 const auto &getitem_user = mng->node_users()[getitem]; in FindIndexesToUpdateState()
Ddecrease_transfer_precision.cc37 int64_t ObtainGetItemIndex(const AnfNodePtr &getitem) { in ObtainGetItemIndex() argument
38 auto index_node = getitem->cast<CNodePtr>()->input(kInputNodeOutputIndexInTupleGetItem); in ObtainGetItemIndex()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/format_type/
Dinsert_cast.cc56 auto getitem = func_graph->NewCNode({NewValueNode(prim::kPrimTupleGetItem), cnode, idx}); in InsertCastForMultipleOutput() local
61 getitem->set_abstract(abs_i); in InsertCastForMultipleOutput()
65 …replace_node = AddCastOpNodeToGraph(func_graph, getitem, dev_fmt, device_type, origin_type, origin… in InsertCastForMultipleOutput()
66 origin_type, AnfAlgo::GetOutputReshapeType(getitem, 0)); in InsertCastForMultipleOutput()
74 replace_node = getitem; in InsertCastForMultipleOutput()
Ddeal_ref_and_split_unsupported_transdata.h37 …CNodePtr MakeDependency(const CNodePtr &getitem, const CNodePtr &final_node, const CNodePtr &cnode,
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/
Dbnupdate_eltwise_fusion_pass.cc32 auto getitem = eltwise_input->cast<CNodePtr>(); in MatchBnupdateDoubleOutputEltwise() local
33 MS_EXCEPTION_IF_NULL(getitem); in MatchBnupdateDoubleOutputEltwise()
34 auto bnupdate = getitem->input(kIndex1); in MatchBnupdateDoubleOutputEltwise()
Dbnupdate_eltwise_eltwise_fusion_pass.cc42 auto getitem = tuple_getitem->cast<CNodePtr>(); in MatchBnupdateAddRelu() local
43 MS_EXCEPTION_IF_NULL(getitem); in MatchBnupdateAddRelu()
44 auto bnupdate = getitem->input(kRealInputNodeIndexInTupleGetItem); in MatchBnupdateAddRelu()
Dub_pattern_fusion.cc328 for (auto &getitem : tuple_getitem_nodes) { in GetFusionScopeOutputNodeList() local
329 MS_EXCEPTION_IF_NULL(getitem); in GetFusionScopeOutputNodeList()
330 auto getitem_ptr = getitem->cast<CNodePtr>(); in GetFusionScopeOutputNodeList()
339 for (auto &item_use_node : manager->node_users()[getitem]) { in GetFusionScopeOutputNodeList()
342 (*buffer_fusion_infos)[fusion_id].outputs_list.push_back(getitem); in GetFusionScopeOutputNodeList()
/third_party/boost/libs/optional/test/
Doptional_test_maybe_uninitialized_warning.cpp18 boost::optional<int> getitem();
22 boost::optional<int> a = getitem(); in main()
/third_party/python/Lib/ctypes/test/
Dtest_slicing.py77 self.assertRaises(ValueError, operator.getitem,
79 self.assertRaises(ValueError, operator.getitem,
81 self.assertRaises(ValueError, operator.getitem,
83 self.assertRaises(ValueError, operator.getitem,
/third_party/boost/boost/python/
Dobject_protocol_core.hpp30 BOOST_PYTHON_DECL object getitem(object const& target, object const& key);
43 using api::getitem;
Dobject_protocol.hpp52 object getitem(Target const& target, Key const& key BOOST_PYTHON_NO_ARRAY_ARG(Key)) in getitem() function
54 return getitem(object(target), object(key)); in getitem()
Dobject_items.hpp65 return getitem(target, key); in get()
/third_party/mindspore/mindspore/_extends/parse/
Dresources.py85 T.getitem: multitype_ops.getitem,
Dtrope.py25 matmul, getitem, setitem
/third_party/node/tools/inspector_protocol/jinja2/
Dsandbox.py359 def getitem(self, obj, argument): member in SandboxedEnvironment
462 obj = self._env.getitem(obj, i)
/third_party/jinja2/
Dsandbox.py381 def getitem(self, obj, argument): member in SandboxedEnvironment
497 obj = self._env.getitem(obj, i)
/third_party/boost/libs/optional/doc/
D17_gotchas.qbk87 boost::optional<int> getitem();
91 boost::optional<int> a = getitem();
/third_party/skia/third_party/externals/jinja2/
Dsandbox.py381 def getitem(self, obj, argument): member in SandboxedEnvironment
497 obj = self._env.getitem(obj, i)
/third_party/python/Lib/
Doperator.py169 def getitem(a, b): function
445 __getitem__ = getitem
Dtyping.py365 def __init__(self, getitem): argument
366 self._getitem = getitem
367 self._name = getitem.__name__
368 self.__doc__ = getitem.__doc__
1088 return operator.getitem, (origin, args)
1167 return operator.getitem, (Callable, args)
1618 return operator.getitem, (

1234