Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/ops/
Dcontrol_flow_util.py211 elif (while_ctxt.grad_state and
212 IsContainingContext(while_ctxt.grad_state.forward_context,
221 elif (while_ctxt.grad_state and
222 while_ctxt.grad_state.forward_context is
228 elif (input_while_ctxt.grad_state and
229 input_while_ctxt.grad_state.forward_context is while_ctxt):
234 elif (input_while_ctxt.grad_state and
235 input_ctxt.grad_state.forward_context.grad_state and
236 input_ctxt.grad_state.forward_context.grad_state.forward_context is
Dcontrol_flow_grad.py48 merge_grad = grad_ctxt.grad_state.switch_map.get(op)
66 grad_ctxt.grad_state.switch_map[op] = merge_grad
105 if grad_ctxt and grad_ctxt.grad_state:
110 grad_state = grad_ctxt.grad_state
111 real_pred = grad_state.history_map.get(pred.name)
114 grad_ctxt = grad_state.grad_context
116 history_pred = grad_state.AddForwardAccumulator(pred)
121 real_pred = grad_state.AddBackpropAccumulatedValue(history_pred, pred)
122 grad_state.history_map[pred.name] = real_pred
155 if op._get_control_flow_context().grad_state:
[all …]
Dcontrol_flow_ops.py860 grad_state=self)
874 grad_state=self)
1096 grad_state = self
1098 while pred is None and grad_state:
1099 pred = grad_state.history_map.get(cond_ctxt.pred.name)
1100 grad_state = grad_state.outer_grad_state
1227 for _, grad_state in self._map.items():
1229 for y in grad_state.forward_loop_exits:
1231 grad_state.pending_exits_count -= 1
1233 grad_state.unused_exits.append(y)
[all …]
Dgradients_impl.py679 grad_state = loop_state.GetGradState(x.op, before=False)
680 grad_state.deferred_exits.append(x)
681 grad_state.pending_exits_count -= 1
682 if grad_state.pending_exits_count == 0:
685 for y in grad_state.deferred_exits:
690 grad_state.unused_exits.append(y)
694 for y in grad_state.unused_exits:
700 for y in grad_state.unused_exits:
/external/tensorflow/tensorflow/contrib/tpu/python/tpu/
Dtpu.py176 def grad_state(self): member in TPUReplicateContext