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.py188 grad_state=self)
202 grad_state=self)
417 grad_state = self
419 while pred is None and grad_state:
420 pred = grad_state.history_map.get(cond_ctxt.pred.name)
421 grad_state = grad_state.outer_grad_state
539 for grad_state in self._map.values():
540 for y in grad_state.forward_loop_exits:
542 grad_state.pending_exits_count -= 1
544 grad_state.unused_exits.append(y)
[all …]
Dcontrol_flow_grad.py48 merge_grad = grad_ctxt.grad_state.switch_map.get(op)
66 grad_ctxt.grad_state.switch_map[op] = merge_grad
110 if grad_ctxt and grad_ctxt.grad_state:
115 grad_state = grad_ctxt.grad_state
116 real_pred = grad_state.history_map.get(pred.name)
119 grad_ctxt = grad_state.grad_context
121 history_pred = grad_state.AddForwardAccumulator(pred)
126 real_pred = grad_state.AddBackpropAccumulatedValue(history_pred, pred)
127 grad_state.history_map[pred.name] = real_pred
160 if op_ctxt.grad_state:
[all …]
Dcontrol_flow_util.py311 elif (while_ctxt.grad_state and
312 IsContainingContext(while_ctxt.grad_state.forward_context,
321 elif (while_ctxt.grad_state and
322 while_ctxt.grad_state.forward_context is
328 elif (input_while_ctxt.grad_state and
329 input_while_ctxt.grad_state.forward_context is while_ctxt):
334 elif (input_while_ctxt.grad_state and
335 input_ctxt.grad_state.forward_context.grad_state and
336 input_ctxt.grad_state.forward_context.grad_state.forward_context is
Dgradients_util.py757 grad_state = loop_state.GetGradState(x.op, before=False)
758 grad_state.deferred_exits.append(x)
759 grad_state.pending_exits_count -= 1
760 if grad_state.pending_exits_count == 0:
763 for y in grad_state.deferred_exits:
768 grad_state.unused_exits.append(y)
772 for y in grad_state.unused_exits:
778 for y in grad_state.unused_exits:
Dcontrol_flow_ops.py700 def grad_state(self): member in ControlFlowContext
891 def grad_state(self): member in CondContext
893 return self.GetWhileContext().grad_state
1462 grad_state=None, argument
1486 self._grad_state = grad_state
1613 def grad_state(self): member in WhileContext
1706 if grad_ctxt.grad_state:
1712 if forward_ctxt == grad_ctxt.grad_state.forward_context:
1713 real_val = grad_ctxt.grad_state.GetRealValue(val)
1758 if grad_ctxt.grad_state:
[all …]
/external/tensorflow/tensorflow/python/compiler/xla/
Dxla.py296 def grad_state(self): member in XLACompileContext
/external/tensorflow/tensorflow/python/tpu/
Dtpu.py674 def grad_state(self): member in TPUReplicateContext
2138 def grad_state(self): member in _TPUInferenceContext