Home
last modified time | relevance | path

Searched refs:to_bool (Results 1 – 4 of 4) sorted by relevance

/external/autotest/server/site_tests/tast/testdata/
Dfake_tast.py75 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/
Dregion_control_flow_to_functional.cc338 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/
Dfunctional_ops_test.py614 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/
Dvalue.rs402 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()