Home
last modified time | relevance | path

Searched refs:true_fn (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/python/kernel_tests/
Dcond_v2_test.py47 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 …]
Dcritical_section_test.py69 def true_fn(): function
75 array_ops.identity(inner_cond), true_fn, lambda: c)
Dcontrol_flow_ops_py_test.py664 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/
Dsmart_cond.py27 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,
Dauto_control_deps_test.py61 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 …]
Dops_test.py793 def true_fn(): function
800 control_flow_ops.cond(x < 10, true_fn, lambda: x)
/external/tensorflow/tensorflow/python/layers/
Dutils.py179 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/
Dtf_utils.py33 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/
Dcrf.py115 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/
Dcontrol_flow_ops_test.py394 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,
Dcontrol_flow_ops.py1844 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 …]
Dcond_v2.py51 def cond_v2(pred, true_fn, false_fn, name="cond"): argument
70 true_fn, [], {},
Dnn_impl.py488 true_fn=lambda: math_ops.cast(
/external/tensorflow/tensorflow/contrib/constrained_optimization/python/
Dconstrained_optimizer.py271 true_fn=unconstrained_fn,
/external/tensorflow/tensorflow/compiler/jit/
Dextract_outside_compilation_pass_test.cc573 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/
Dtfexample_decoder.py277 true_fn=lambda: self._backup.tensors_to_item(keys_to_tensors),
/external/tensorflow/tensorflow/python/eager/
Dbackprop_test.py709 def true_fn(): function
717 y = control_flow_ops.cond(x < x, true_fn, false_fn)
/external/squashfs-tools/squashfs-tools/
Daction.c2488 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/
Dpfor.py499 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/
Dtensorflow.pbtxt517 …argspec: "args=[\'pred\', \'true_fn\', \'false_fn\', \'name\'], varargs=None, keywords=None, defau…
/external/tensorflow/tensorflow/contrib/metrics/python/ops/
Dmetric_ops.py1146 true_fn=lambda: array_ops.constant(0, dtypes.float64),
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.pbtxt977 …argspec: "args=[\'pred\', \'true_fn\', \'false_fn\', \'strict\', \'name\', \'fn1\', \'fn2\'], vara…