Home
last modified time | relevance | path

Searched refs:update_state (Results 1 – 22 of 22) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/
Doptimize_updatestate.cc39 auto update_state = dyn_cast<CNode>(node); in Process() local
40 MS_EXCEPTION_IF_NULL(update_state); in Process()
41 if (update_state->size() <= kAdditionalAttachIndex) { in Process()
49 (void)new_inputs.emplace_back(update_state->input(0)); in Process()
50 (void)new_inputs.emplace_back(update_state->input(kInputIndex)); in Process()
51 (void)new_inputs.emplace_back(update_state->input(kAttachIndex)); in Process()
52 for (size_t i = kAdditionalAttachIndex; i < update_state->size(); ++i) { in Process()
53 auto &attach = update_state->input(i); in Process()
56 if ((users.size() == 1) && (users.front().first == update_state) && !attach->isa<Parameter>()) { in Process()
62 if (new_inputs.size() == update_state->size()) { in Process()
[all …]
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/irpass/
Dupdatestate_eliminate.cc115 AnfNodePtr NewUpdateStateWithAttach(const CNodePtr &update_state, const AnfNodePtr &attach) { in NewUpdateStateWithAttach() argument
116 auto fg = update_state->func_graph(); in NewUpdateStateWithAttach()
121 fg->NewCNode({update_state->input(kFirstInputIndex), update_state->input(kInputIndex), attach}); in NewUpdateStateWithAttach()
122 new_update_state->set_abstract(update_state->abstract()); in NewUpdateStateWithAttach()
123 new_update_state->set_scope(update_state->scope()); in NewUpdateStateWithAttach()
127 AnfNodePtr EliminateUpdateStateWithDepend(const CNodePtr &update_state) { in EliminateUpdateStateWithDepend() argument
128 auto depend = update_state->input(kAttachIndex)->cast<CNodePtr>(); in EliminateUpdateStateWithDepend()
134 auto update_monad = update_state->input(kInputIndex); in EliminateUpdateStateWithDepend()
137 MS_LOG(WARNING) << "Not a monad input: " << update_state->DebugString(); in EliminateUpdateStateWithDepend()
149 auto mgr = GetManager(update_state); in EliminateUpdateStateWithDepend()
[all …]
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/
Dorder_enforce.cc60 auto update_state = node->cast<CNodePtr>(); in HandleUpdateState() local
61 MS_EXCEPTION_IF_NULL(update_state); in HandleUpdateState()
63 if (update_state->inputs().size() < update_state_inputs_size) { in HandleUpdateState()
64 …MS_LOG(ERROR) << "UpdateState inputs size is less than 3, node is:" << update_state->DebugString(); in HandleUpdateState()
66 if (!HasAbstractUMonad(update_state->input(1))) { in HandleUpdateState()
71 auto &attach = update_state->input(attach_index); in HandleUpdateState()
77 auto &prev_u = update_state->input(1); in HandleUpdateState()
83 auto side_effect_nodes = FindNodeUsers(prev_u, [&update_state](const AnfNodePtr &user_node) { in HandleUpdateState()
84 return (user_node != update_state) && !IsPrimitiveCNode(user_node, prim::kPrimLoad); in HandleUpdateState()
165 auto update_state = FindLastUpdateState(maketuple); in HandleMakeTupleUsers() local
[all …]
Dauto_monad.cc1114 bool update_state = NeedUpdateState(); in HandleCNodes() local
1126 HandleMemoryEffects(cnode, update_state); in HandleCNodes()
1129 HandleLoad(cnode, update_state); in HandleCNodes()
1133 HandleIoEffects(cnode, update_state); in HandleCNodes()
1146 if (update_state) { in HandleCNodes()
1234 void HandleMemoryEffects(const CNodePtr &cnode, bool update_state) { in HandleMemoryEffects() argument
1237 if (update_state) { in HandleMemoryEffects()
1250 void HandleIoEffects(const CNodePtr &cnode, bool update_state) { in HandleIoEffects() argument
1253 if (update_state) { in HandleIoEffects()
1258 void HandleLoad(const CNodePtr &cnode, bool update_state) { in HandleLoad() argument
[all …]
/third_party/boost/libs/locale/src/shared/
Dmo_hash.hpp21 static state_type update_state(state_type value,char c) in update_state() function
29 static state_type update_state(state_type value,char const *ptr) in update_state() function
32 value = update_state(value,*ptr++); in update_state()
35 static state_type update_state(state_type value,char const *begin,char const *end) in update_state() function
38 value = update_state(value,*begin++); in update_state()
46 state = pj_winberger_hash::update_state(state,ptr); in pj_winberger_hash_function()
53 state = pj_winberger_hash::update_state(state,begin,end); in pj_winberger_hash_function()
Dmessage.cpp137 st = pj_winberger_hash::update_state(st,context_in); in find()
138 st = pj_winberger_hash::update_state(st,'\4'); // EOT in find()
139 st = pj_winberger_hash::update_state(st,key_in); in find()
441 state = pj_winberger_hash::update_state(state, in operator ()()
444 state = pj_winberger_hash::update_state(state,'\4'); in operator ()()
450 state = pj_winberger_hash::update_state(state, in operator ()()
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pre_activate/
Dfused_batch_norm_fusion_test.py28 update_state = Primitive('UpdateState') variable
60 u0 = update_state(U, assign_sub0)
62 u1 = update_state(u0, assign_sub1)
77 u0 = update_state(U, assign_sub0)
79 u1 = update_state(u0, assign_sub1)
94 u0 = update_state(U, assign_sub0)
96 u1 = update_state(u0, assign_sub1)
/third_party/weston/clients/
Dsimple-egl-hos.c672 uint32_t update_state, in ScreenUpdate() argument
677 LOG("screenUpdate update_state: %d", update_state); in ScreenUpdate()
681 if (update_state == WMS_SCREEN_STATUS_ADD) { in ScreenUpdate()
689 void WindowUpdate(void *data, struct wms *wms, uint32_t update_state, uint32_t window_id, in WindowUpdate() argument
694 LOG("WindowUpdate update_state: %d", update_state); in WindowUpdate()
698 if (update_state == WMS_WINDOW_STATUS_CREATED) { in WindowUpdate()
703 else if (update_state == WMS_WINDOW_STATUS_FAILED) { in WindowUpdate()
Dsimple-dmabuf-egl-hos.c1044 uint32_t update_state, in ScreenUpdate() argument
1049 LOG("screenUpdate update_state: %d", update_state); in ScreenUpdate()
1053 if (update_state == WMS_SCREEN_STATUS_ADD) { in ScreenUpdate()
1061 void WindowUpdate(void *data, struct wms *wms, uint32_t update_state, uint32_t window_id, in WindowUpdate() argument
1066 LOG("WindowUpdate update_state: %d", update_state); in WindowUpdate()
1070 if (update_state == WMS_WINDOW_STATUS_CREATED) { in WindowUpdate()
1075 else if (update_state == WMS_WINDOW_STATUS_FAILED) { in WindowUpdate()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/format_type/
Dinsert_cast.cc40 for (auto &update_state : update_states) { in InsertCastForMultipleOutput() local
41 manager->SetEdge(update_state.first, update_state.second, cnode); in InsertCastForMultipleOutput()
Ddeal_ref_and_split_unsupported_transdata.cc178 for (auto &update_state : update_states) { in DealRefForMultipleOutput() local
179 manager->SetEdge(update_state.first, update_state.second, cnode); in DealRefForMultipleOutput()
/third_party/weston/libweston/
Dbackend.h188 enum weston_key_state_update update_state);
191 enum weston_key_state_update update_state);
Dinput.c2192 enum weston_key_state_update update_state) in notify_key() argument
2233 if (update_state == STATE_UPDATE_AUTOMATIC) { in notify_key()
2276 enum weston_key_state_update update_state) in notify_keyboard_focus_in() argument
2287 if (update_state == STATE_UPDATE_AUTOMATIC) in notify_keyboard_focus_in()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dauto_monad_eliminate.cc264 auto update_state = load_node->cast<CNodePtr>()->input(second_input_index); in ReplaceUpdateStateForLoad() local
268 auto &node_users = mgr->node_users()[update_state]; in ReplaceUpdateStateForLoad()
270 if (!IsPrimitiveCNode(update_state, prim::kPrimUpdateState) || node_users.size() == kUserSize) { in ReplaceUpdateStateForLoad()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_state.c182 update_state(struct svga_context *svga, in update_state() function
273 ret = update_state( svga, in svga_update_state()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/
Dascend_helper.cc163 for (auto &update_state : update_states) { in InsertTransOpForMultipleOutput() local
164 manager->SetEdge(update_state.first, update_state.second, node); in InsertTransOpForMultipleOutput()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/
Ddfunctor.cc887 for (auto &update_state : update_states) { in RemovePrimalUpdateStates() local
888 auto &input_monad = update_state->inputs().at(1); in RemovePrimalUpdateStates()
889 manager->Replace(update_state, input_monad); in RemovePrimalUpdateStates()
/third_party/ffmpeg/libavcodec/
Damrnbdec.c847 static void update_state(AMRContext *p) in update_state() function
1058 update_state(p); in amrnb_decode_frame()
/third_party/libevdev/libevdev/
Dlibevdev.c1059 update_state(struct libevdev *dev, const struct input_event *e) in update_state() function
1172 update_state(dev, &e); in libevdev_next_event()
1202 update_state(dev, ev); in libevdev_next_event()
/third_party/weston/xwayland/
Dwindow-manager.c1714 update_state(int action, int *state) in update_state() function
1779 update_state(action, &window->fullscreen)) { in weston_wm_window_handle_state()
1795 update_state(action, &window->maximized_vert)) in weston_wm_window_handle_state()
1799 update_state(action, &window->maximized_horz)) in weston_wm_window_handle_state()
/third_party/boost/boost/msm/back/
Dstate_machine.hpp1575 struct update_state struct in boost::msm::back::state_machine
1577 update_state(substate_list& to_overwrite_):to_overwrite(&to_overwrite_){} in update_state() argument
1589 …::boost::fusion::as_vector(FoldToList()(expr, boost::fusion::nil_())),update_state(this->m_substat… in set_states()
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dascend_auto_monad.cc1279 auto update_state = NewValueNode(prim::kPrimUpdateState); in UpdateState() local
1280 auto update_state_cnode = kernel_graph_->NewCNode({update_state, state, input}); in UpdateState()