Home
last modified time | relevance | path

Searched refs:is_bool (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/utils/
Dconvert_op_folder.cc66 bool is_bool = old_type.isInteger(1); in ConvertElementsAttr() local
70 new_type, llvm::function_ref<func_type>([&newFloatType, &is_bool]( in ConvertElementsAttr()
72 int64_t val = is_bool ? intVal.getZExtValue() : intVal.getSExtValue(); in ConvertElementsAttr()
83 new_type, llvm::function_ref<func_type>([&bit_width, &is_bool]( in ConvertElementsAttr()
85 int64_t val = is_bool ? intVal.getZExtValue() : intVal.getSExtValue(); in ConvertElementsAttr()
/external/abseil-cpp/absl/flags/
Dflag_test.cc508 bool is_bool = false; in TEST_F() local
509 EXPECT_TRUE(flags::IsRetiredFlag("old_bool_flag", &is_bool)); in TEST_F()
510 EXPECT_TRUE(is_bool); in TEST_F()
511 EXPECT_TRUE(flags::IsRetiredFlag("old_int_flag", &is_bool)); in TEST_F()
512 EXPECT_FALSE(is_bool); in TEST_F()
513 EXPECT_TRUE(flags::IsRetiredFlag("old_str_flag", &is_bool)); in TEST_F()
514 EXPECT_FALSE(is_bool); in TEST_F()
515 EXPECT_FALSE(flags::IsRetiredFlag("some_other_flag", &is_bool)); in TEST_F()
/external/webrtc/third_party/abseil-cpp/absl/flags/
Dflag_test.cc508 bool is_bool = false; in TEST_F() local
509 EXPECT_TRUE(flags::IsRetiredFlag("old_bool_flag", &is_bool)); in TEST_F()
510 EXPECT_TRUE(is_bool); in TEST_F()
511 EXPECT_TRUE(flags::IsRetiredFlag("old_int_flag", &is_bool)); in TEST_F()
512 EXPECT_FALSE(is_bool); in TEST_F()
513 EXPECT_TRUE(flags::IsRetiredFlag("old_str_flag", &is_bool)); in TEST_F()
514 EXPECT_FALSE(is_bool); in TEST_F()
515 EXPECT_FALSE(flags::IsRetiredFlag("some_other_flag", &is_bool)); in TEST_F()
/external/rust/crates/bindgen/src/ir/
Denum_ty.rs73 let is_bool = variant_ty.map_or(false, Type::is_bool); in from_ty() localVariable
94 let value = if is_bool { in from_ty()
Dty.rs189 pub fn is_bool(&self) -> bool { in is_bool() method
/external/OpenCL-CTS/test_conformance/basic/
Dtest_progvar.cpp142 bool is_bool(void) const {return m_is_bool;} in is_bool() function in TypeInfo
153 if ( this->is_bool() ) { in as_string()
216 if ( this->is_bool() ) { *buf = (bool)val; return; } in init_elem()
963 const int num_rounds = ti.is_bool() ? (1 << NUM_TESTED_VALUES ) : NUM_ROUNDS; in l_write_read_for_type()
973 if ( ti.is_bool() ) { in l_write_read_for_type()
1004 if ( ti.is_bool() ) { in l_write_read_for_type()
1021 if ( ti.is_bool() ) { in l_write_read_for_type()
1112 const int num_rounds = ti.is_bool() ? (1 << NUM_TESTED_VALUES ) : NUM_ROUNDS; in l_init_write_read_for_type()
1127 if ( ti.is_bool() ) { in l_init_write_read_for_type()
1177 if ( ti.is_bool() ) { in l_init_write_read_for_type()
[all …]
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.-d-type.pbtxt19 name: "is_bool"
Dtensorflow.dtypes.-d-type.pbtxt19 name: "is_bool"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.dtypes.-d-type.pbtxt19 name: "is_bool"
Dtensorflow.-d-type.pbtxt19 name: "is_bool"
/external/libchrome/base/json/
Djson_reader_unittest.cc37 EXPECT_TRUE(root->is_bool()); in TEST()
49 EXPECT_TRUE(root->is_bool()); in TEST()
304 EXPECT_TRUE(tmp_value->is_bool()); in TEST()
/external/flatbuffers/src/
Didl_gen_lua.cpp186 auto is_bool = field.value.type.base_type == BASE_TYPE_BOOL; in GetScalarFieldOfTable() local
187 if (is_bool) { getter = "(" + getter + " ~= 0)"; } in GetScalarFieldOfTable()
191 if (is_bool) { in GetScalarFieldOfTable()
Didl_gen_python.cpp200 auto is_bool = IsBool(field.value.type.base_type); in GetScalarFieldOfTable() local
201 if (is_bool) { getter = "bool(" + getter + ")"; } in GetScalarFieldOfTable()
204 if (is_bool) { in GetScalarFieldOfTable()
/external/tensorflow/tensorflow/python/debug/lib/
Ddumping_callback.py420 (dtype.is_floating or dtype.is_integer or dtype.is_bool))
528 tensor.dtype.is_bool):
/external/tensorflow/tensorflow/python/eager/
Dbackprop.py685 if dtypes.as_dtype(dtype).is_bool:
702 if as_dtype.is_bool:
/external/libchrome/base/
Dvalues.cc226 CHECK(is_bool()); in GetBool()
445 if (out_value && is_bool()) { in GetAsBoolean()
449 return is_bool(); in GetAsBoolean()
Dvalues.h154 bool is_bool() const { return type() == Type::BOOLEAN; } in is_bool() function
Dvalues_unittest.cc1053 EXPECT_TRUE(removed_item->is_bool()); in TEST()
1098 ASSERT_TRUE(copy_bool->is_bool()); in TEST()
/external/libchrome/base/test/
Dtrace_event_analyzer.cc296 bool is_bool = GetAsDouble(event, &bool_value); in Evaluate() local
297 if (is_bool) in Evaluate()
/external/mesa3d/src/freedreno/ir3/
Dir3_cp.c143 if (srcsrc && is_bool(srcsrc)) in combine_flags()
Dir3.h836 static inline bool is_bool(struct ir3_instruction *instr) in is_bool() function
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_math_ops.py544 is_bool = (x1.dtype == dtypes.bool)
545 if is_bool:
550 if is_bool:
/external/protobuf/php/src/Google/Protobuf/Internal/
DMessage.php870 if (!is_bool($value)) {
1126 if (is_bool($array)) {
/external/tensorflow/tensorflow/python/ops/distributions/
Ddistribution.py136 (preferred_dtype.is_integer or preferred_dtype.is_bool)):
/external/skqp/src/sksl/
DSkSLSPIRVCodeGenerator.cpp170 static bool is_bool(const Context& context, const Type& type) { in is_bool() function
172 return is_bool(context, type.componentType()); in is_bool()
682 } else if (is_bool(fContext, type)) { in writeIntrinsicCall()

12