/external/tensorflow/tensorflow/python/kernel_tests/ |
D | cond_v2_test.py | 47 def _testCond(self, true_fn, false_fn, train_vals, feed_dict=None): argument 53 expected = control_flow_ops.cond(pred, true_fn, false_fn, name="expected") 54 actual = cond_v2.cond_v2(pred, true_fn, false_fn, name="actual") 78 def true_fn(): function 84 self._testCond(true_fn, false_fn, [x]) 85 self._testCond(true_fn, false_fn, [x, y]) 86 self._testCond(true_fn, false_fn, [y]) 108 def true_fn(): function 114 self._testCond(true_fn, false_fn, [x]) 115 self._testCond(true_fn, false_fn, [x, y]) [all …]
|
D | critical_section_test.py | 69 def true_fn(): function 75 array_ops.identity(inner_cond), true_fn, lambda: c)
|
D | control_flow_ops_py_test.py | 664 def true_fn(): function 669 constant_op.constant(True), true_fn, lambda: 0.) 704 def true_fn(): function 708 r = control_flow_ops.cond(constant_op.constant(True), true_fn, lambda: 0.) 732 def true_fn(): function 736 r = control_flow_ops.cond(constant_op.constant(True), true_fn, lambda: 0.) 847 true_fn = lambda: x function 849 r = control_flow_ops.cond(constant_op.constant(False), true_fn, false_fn) 1071 def true_fn(): function 1085 r = control_flow_ops.cond(constant_op.constant(True), true_fn, false_fn) [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | smart_cond.py | 27 def smart_cond(pred, true_fn=None, false_fn=None, name=None): argument 46 if not callable(true_fn): 54 return true_fn() 58 return control_flow_ops.cond(pred, true_fn=true_fn, false_fn=false_fn,
|
D | auto_control_deps_test.py | 61 def true_fn(): function 69 control_flow_ops.cond(p, true_fn, false_fn) 83 def true_fn(): function 91 control_flow_ops.cond(p, true_fn, false_fn) 108 def true_fn(): function 125 control_flow_ops.cond(p, true_fn, false_fn) 142 def true_fn(): function 149 control_flow_ops.cond(p, true_fn, false_fn) 164 def true_fn(): function 171 control_flow_ops.cond(p, true_fn, false_fn) [all …]
|
D | ops_test.py | 793 def true_fn(): function 800 control_flow_ops.cond(x < 10, true_fn, lambda: x)
|
/external/tensorflow/tensorflow/python/layers/ |
D | utils.py | 179 def smart_cond(pred, true_fn=None, false_fn=None, name=None): argument 200 pred, true_fn=true_fn, false_fn=false_fn, name=name) 202 pred, true_fn=true_fn, false_fn=false_fn, name=name)
|
/external/tensorflow/tensorflow/python/keras/utils/ |
D | tf_utils.py | 33 def smart_cond(pred, true_fn=None, false_fn=None, name=None): argument 54 pred, true_fn=true_fn, false_fn=false_fn, name=name) 56 pred, true_fn=true_fn, false_fn=false_fn, name=name)
|
/external/tensorflow/tensorflow/contrib/crf/python/ops/ |
D | crf.py | 115 true_fn=_single_seq_fn, 167 true_fn=_single_seq_fn, 226 true_fn=_single_seq_fn, 595 true_fn=_single_seq_fn,
|
/external/tensorflow/tensorflow/python/ops/ |
D | control_flow_ops_test.py | 394 true_fn=lambda: state_ops.assign(bool_var, False), 698 def true_fn(): function 712 self._testShape(true_fn, false_fn, shape) 713 self._testReturnValues(true_fn, false_fn, value1, value2) 714 self._testShape(true_fn, false_fn, [shape], strict=True) 715 self._testReturnValues(true_fn, false_fn, [value1], [value2], strict=True) 874 def true_fn(): function 884 self._testShape(true_fn, false_fn, shape) 886 true_fn, false_fn,
|
D | control_flow_ops.py | 1844 true_fn=None, argument 1918 return cond_v2.cond_v2(pred, true_fn, false_fn, name) 1926 if true_fn is not None: 1928 true_fn = fn1 1929 elif true_fn is None: 1938 if not callable(true_fn): 1946 return _UnpackIfSingleton(true_fn()) 1964 orig_res_t, res_t = context_t.BuildCondBranch(true_fn) 2081 true_fn=None, argument 2147 return cond(pred, true_fn=true_fn, false_fn=false_fn, strict=True, name=name) [all …]
|
D | cond_v2.py | 51 def cond_v2(pred, true_fn, false_fn, name="cond"): argument 70 true_fn, [], {},
|
D | nn_impl.py | 488 true_fn=lambda: math_ops.cast(
|
/external/tensorflow/tensorflow/contrib/constrained_optimization/python/ |
D | constrained_optimizer.py | 271 true_fn=unconstrained_fn,
|
/external/tensorflow/tensorflow/compiler/jit/ |
D | extract_outside_compilation_pass_test.cc | 573 NameAttrList true_fn; in TEST_F() local 574 true_fn.set_name("true_fn"); in TEST_F() 579 true_fn, false_fn); in TEST_F()
|
/external/tensorflow/tensorflow/contrib/slim/python/slim/data/ |
D | tfexample_decoder.py | 277 true_fn=lambda: self._backup.tensors_to_item(keys_to_tensors),
|
/external/tensorflow/tensorflow/python/eager/ |
D | backprop_test.py | 709 def true_fn(): function 717 y = control_flow_ops.cond(x < x, true_fn, false_fn)
|
/external/squashfs-tools/squashfs-tools/ |
D | action.c | 2488 static int true_fn(struct atom *atom, struct action_data *action_data) in true_fn() function 3236 { "true", 0, true_fn, NULL, 1, 0},
|
/external/tensorflow/tensorflow/python/ops/parallel_for/ |
D | pfor.py | 499 def true_fn(control_inputs, body_pfor, body_output, stacked): function 535 lambda: true_fn(control_inp, body_pfor, body_output, stacked),
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.pbtxt | 517 …argspec: "args=[\'pred\', \'true_fn\', \'false_fn\', \'name\'], varargs=None, keywords=None, defau…
|
/external/tensorflow/tensorflow/contrib/metrics/python/ops/ |
D | metric_ops.py | 1146 true_fn=lambda: array_ops.constant(0, dtypes.float64),
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.pbtxt | 977 …argspec: "args=[\'pred\', \'true_fn\', \'false_fn\', \'strict\', \'name\', \'fn1\', \'fn2\'], vara…
|