Home
last modified time | relevance | path

Searched refs:grad_state (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/python/ops/
Dcontrol_flow_state.py184 grad_state=self)
198 grad_state=self)
413 grad_state = self
415 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_state
535 for grad_state in self._map.values():
536 for y in grad_state.forward_loop_exits:
538 grad_state.pending_exits_count -= 1
540 grad_state.unused_exits.append(y)
[all …]
Dcontrol_flow_grad.py44 merge_grad = grad_ctxt.grad_state.switch_map.get(op)
62 grad_ctxt.grad_state.switch_map[op] = merge_grad
106 if grad_ctxt and grad_ctxt.grad_state:
111 grad_state = grad_ctxt.grad_state
112 real_pred = grad_state.history_map.get(pred.name)
115 grad_ctxt = grad_state.grad_context
117 history_pred = grad_state.AddForwardAccumulator(pred)
122 real_pred = grad_state.AddBackpropAccumulatedValue(history_pred, pred)
123 grad_state.history_map[pred.name] = real_pred
158 if op_ctxt.grad_state:
[all …]
Dcontrol_flow_util.py307 elif (while_ctxt.grad_state and
308 IsContainingContext(while_ctxt.grad_state.forward_context,
317 elif (while_ctxt.grad_state and
318 while_ctxt.grad_state.forward_context is
324 elif (input_while_ctxt.grad_state and
325 input_while_ctxt.grad_state.forward_context is while_ctxt):
330 elif (input_while_ctxt.grad_state and
331 input_ctxt.grad_state.forward_context.grad_state and
332 input_ctxt.grad_state.forward_context.grad_state.forward_context is
Dgradients_util.py768 grad_state = loop_state.GetGradState(x.op, before=False)
769 grad_state.deferred_exits.append(x)
770 grad_state.pending_exits_count -= 1
771 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:
Dcontrol_flow_ops.py647 def grad_state(self): member in ControlFlowContext
838 def grad_state(self): member in CondContext
840 return self.GetWhileContext().grad_state
1420 grad_state=None, argument
1444 self._grad_state = grad_state
1571 def grad_state(self): member in WhileContext
1664 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 …]
/external/tensorflow/tensorflow/python/compiler/xla/
Dxla.py291 def grad_state(self): member in XLACompileContext
/external/tensorflow/tensorflow/python/tpu/
Dtpu.py697 def grad_state(self): member in TPUReplicateContext
2218 def grad_state(self): member in _TPUInferenceContext