Searched refs:grad_state (Results 1 – 7 of 7) sorted by relevance
184 grad_state=self)198 grad_state=self)413 grad_state = self415 while pred is None and grad_state:416 pred = grad_state.history_map.get(cond_ctxt.pred.name)417 grad_state = grad_state.outer_grad_state535 for grad_state in self._map.values():536 for y in grad_state.forward_loop_exits:538 grad_state.pending_exits_count -= 1540 grad_state.unused_exits.append(y)[all …]
44 merge_grad = grad_ctxt.grad_state.switch_map.get(op)62 grad_ctxt.grad_state.switch_map[op] = merge_grad106 if grad_ctxt and grad_ctxt.grad_state:111 grad_state = grad_ctxt.grad_state112 real_pred = grad_state.history_map.get(pred.name)115 grad_ctxt = grad_state.grad_context117 history_pred = grad_state.AddForwardAccumulator(pred)122 real_pred = grad_state.AddBackpropAccumulatedValue(history_pred, pred)123 grad_state.history_map[pred.name] = real_pred158 if op_ctxt.grad_state:[all …]
307 elif (while_ctxt.grad_state and308 IsContainingContext(while_ctxt.grad_state.forward_context,317 elif (while_ctxt.grad_state and318 while_ctxt.grad_state.forward_context is324 elif (input_while_ctxt.grad_state and325 input_while_ctxt.grad_state.forward_context is while_ctxt):330 elif (input_while_ctxt.grad_state and331 input_ctxt.grad_state.forward_context.grad_state and332 input_ctxt.grad_state.forward_context.grad_state.forward_context is
768 grad_state = loop_state.GetGradState(x.op, before=False)769 grad_state.deferred_exits.append(x)770 grad_state.pending_exits_count -= 1771 if grad_state.pending_exits_count == 0:774 for y in grad_state.deferred_exits:779 grad_state.unused_exits.append(y)783 for y in grad_state.unused_exits:789 for y in grad_state.unused_exits:
647 def grad_state(self): member in ControlFlowContext838 def grad_state(self): member in CondContext840 return self.GetWhileContext().grad_state1420 grad_state=None, argument1444 self._grad_state = grad_state1571 def grad_state(self): member in WhileContext1664 if grad_ctxt.grad_state:1670 if forward_ctxt == grad_ctxt.grad_state.forward_context:1671 real_val = grad_ctxt.grad_state.GetRealValue(val)1716 if grad_ctxt.grad_state:[all …]
291 def grad_state(self): member in XLACompileContext
697 def grad_state(self): member in TPUReplicateContext2218 def grad_state(self): member in _TPUInferenceContext