Searched refs:to_bool (Results 1 – 4 of 4) sorted by relevance
/external/autotest/server/site_tests/tast/testdata/ |
D | fake_tast.py | 75 def to_bool(v): function 84 parser.add_argument('-logtime', type=to_bool, default=False, nargs='?') 85 parser.add_argument('-verbose', type=to_bool, default=False, nargs='?') 92 subparser.add_argument('-build', type=to_bool, default=True, nargs='?') 94 subparser.add_argument('-checkbuilddeps', type=to_bool, default=True, 96 subparser.add_argument('-downloadprivatebundles', type=to_bool, 109 list_parser.add_argument('-json', type=to_bool, default=False, nargs='?') 116 run_parser.add_argument('-continueafterfailure', type=to_bool,
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | region_control_flow_to_functional.cc | 338 auto to_bool = dyn_cast_or_null<ToBoolOp>(cond.getDefiningOp()); in ConvertIfOp() local 339 if (to_bool) cond = to_bool.getOperand(); in ConvertIfOp() 352 if (to_bool && to_bool.use_empty()) to_bool.erase(); in ConvertIfOp()
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | functional_ops_test.py | 614 self.assertAllEqual(gen_functional_ops.to_bool(0), False) 615 self.assertAllEqual(gen_functional_ops.to_bool(1), True) 616 self.assertAllEqual(gen_functional_ops.to_bool(42), True) 617 self.assertAllEqual(gen_functional_ops.to_bool(0.), False) 618 self.assertAllEqual(gen_functional_ops.to_bool(1.), True) 619 self.assertAllEqual(gen_functional_ops.to_bool(42.), True) 620 self.assertAllEqual(gen_functional_ops.to_bool(False), False) 621 self.assertAllEqual(gen_functional_ops.to_bool(True), True) 623 self.assertAllEqual(gen_functional_ops.to_bool(""), False) 624 self.assertAllEqual(gen_functional_ops.to_bool("a"), True) [all …]
|
/external/rust/crates/log/src/kv/ |
D | value.rs | 402 to_bool -> bool, 616 assert!(v.to_bool().is_some()); in test_to_bool() 625 assert!(v.to_bool().is_none()); in test_to_bool()
|