Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/contrib/graph_editor/
Dreroute.py101 def _reroute_t(t0, t1, consumers1, can_modify=None, cannot_modify=None): argument
120 if can_modify is not None:
121 consumers1 &= can_modify
135 def _reroute_ts(ts0, ts1, mode, can_modify=None, cannot_modify=None): argument
186 if can_modify is not None:
187 can_modify = frozenset(_util.make_list_of_op(can_modify))
200 nb_update_inputs += _reroute_t(t0, t1, consumers1, can_modify,
203 nb_update_inputs += _reroute_t(t1, t0, consumers0, can_modify,
208 def swap_ts(ts0, ts1, can_modify=None, cannot_modify=None): argument
230 return _reroute_ts(ts0, ts1, _RerouteMode.swap, can_modify, cannot_modify)
[all …]
/external/tensorflow/tensorflow/contrib/quantize/python/
Dcommon.py136 def RerouteTensor(t0, t1, can_modify=None): argument
150 if can_modify is not None:
151 consumers = [c for c in consumers if c in can_modify]
Dfold_batch_norms.py419 can_modify=bn_decay_mean_consumers)
430 can_modify=bn_decay_var_consumers)
536 folded_op.outputs[0], original_op.outputs[0], can_modify=[activation])
561 folded_op.outputs[0], original_op.outputs[0], can_modify=[add_bypass])
Dcommon_test.py87 common.RerouteTensor(b, a, can_modify=[add_ac.op])
Dquantize.py769 quant, inputs, can_modify=consumers)