Home
last modified time | relevance | path

Searched refs:PyBool_Check (Results 1 – 25 of 52) sorted by relevance

123

/external/python/cpython3/Objects/
Dboolobject.c89 if (!PyBool_Check(a) || !PyBool_Check(b)) in bool_and()
97 if (!PyBool_Check(a) || !PyBool_Check(b)) in bool_or()
105 if (!PyBool_Check(a) || !PyBool_Check(b)) in bool_xor()
Drangeobject.c485 if (PyLong_CheckExact(ob) || PyBool_Check(ob)) in range_contains()
610 if (PyLong_CheckExact(ob) || PyBool_Check(ob)) { in range_count()
629 if (!PyLong_CheckExact(ob) && !PyBool_Check(ob)) { in range_index()
Dfileobject.c171 if (PyBool_Check(o)) { in PyObject_AsFileDescriptor()
/external/pytorch/torch/csrc/
DModule.cpp497 PyBool_Check(arg), in THPModule_setBackcompatBroadcastWarn()
520 PyBool_Check(arg), in THPModule_setBackcompatKeepdimWarn()
646 PyBool_Check(arg), in THPModule_setAllowTF32CuDNN()
692 PyBool_Check(arg), in THPModule_setSDPUseFlash()
709 PyBool_Check(arg), in THPModule_setSDPUseMemEfficient()
726 PyBool_Check(arg), in THPModule_setSDPUseMath()
745 PyBool_Check(arg), in THPModule_setAllowFP16BF16ReductionMathSDP()
764 PyBool_Check(arg), in THPModule_setSDPUseOverrideable()
783 PyBool_Check(arg), in THPModule_setSDPUseCuDNN()
801 PyBool_Check(arg), in THPModule_setUserEnabledCuDNN()
[all …]
Dutils.h46 (PyBool_Check(object) \
61 #define THPUtils_checkReal_BOOL(object) PyBool_Check(object)
DPyInterpreter.cpp465 PyBool_Check(out.ptr()), in is_contiguous()
498 PyBool_Check(out.ptr()), in is_strides_like()
527 PyBool_Check(out.ptr()), in is_non_overlapping_and_dense()
Dutils.cpp31 if (PyBool_Check(obj)) { in THPUtils_checkIndex()
DStorageSharing.cpp445 PyBool_Check(_event_sync_required))) { in THPStorage_newSharedCuda()
/external/pytorch/torch/csrc/utils/
Dpython_numbers.h41 return PyLong_CheckExact(obj) && !PyBool_Check(obj); in THPUtils_checkLongExact()
56 return PyLong_Check(obj) && !PyBool_Check(obj); in THPUtils_checkLong()
137 return PyBool_Check(obj); in THPUtils_checkBool()
Dpython_arg_parser.cpp973 return PyBool_Check(obj); in check()
1723 if (PyBool_Check(obj)) { in tensor_slow()
1820 if (PyBool_Check(arg)) { in scalar_slow()
/external/python/cpython3/Include/
Dboolobject.h12 #define PyBool_Check(x) Py_IS_TYPE((x), &PyBool_Type) macro
/external/python/cpython3/Doc/c-api/
Dbool.rst20 .. c:function:: int PyBool_Check(PyObject *o)
/external/libchrome/third_party/markupsafe/
D_speedups.c127 PyFloat_CheckExact(text) || PyBool_Check(text) || in escape()
/external/pytorch/torch/csrc/autograd/
Dinit.cpp650 PyBool_Check(arg), in set_autocast_cpu_enabled()
676 PyBool_Check(arg), in set_autocast_ipu_enabled()
702 PyBool_Check(arg), in set_autocast_xla_enabled()
855 PyBool_Check(arg), in set_autocast_cache_enabled()
899 PyBool_Check(arg), in set_fwd_grad_enabled()
Dpython_variable_indexing.cpp114 if (THPUtils_checkLong(value) || PyBool_Check(value)) { in valueToTensor()
222 } else if (PyBool_Check(obj)) { in applySlicing()
/external/pytorch/torch/csrc/monitor/
Dpython_init.cpp34 } else if (PyBool_Check(source)) { in load()
/external/libxml2/python/
Dtypes.c585 #ifdef PyBool_Check in libxml_xmlXPathObjectPtrConvert()
586 } else if (PyBool_Check (obj)) { in libxml_xmlXPathObjectPtrConvert()
/external/python/markupsafe/src/markupsafe/
D_speedups.c201 PyFloat_CheckExact(text) || PyBool_Check(text) || in escape()
/external/python/cpython3/Python/
Dstructmember.c166 if (!PyBool_Check(v)) { in PyMember_SetOne()
Dast.c163 || PyBool_Check(value) in validate_constant()
557 ret = p->v.MatchSingleton.value == Py_None || PyBool_Check(p->v.MatchSingleton.value); in validate_pattern()
584 if (literal == Py_None || PyBool_Check(literal)) { in validate_pattern()
Dbytecodes.c322 assert(PyBool_Check(value)); in dummy_func()
357 EXIT_IF(!PyBool_Check(value)); in dummy_func()
2457 assert(PyBool_Check(cond)); in dummy_func()
2466 assert(PyBool_Check(cond)); in dummy_func()
4102 assert(PyBool_Check(cond)); in dummy_func()
4113 assert(PyBool_Check(cond)); in dummy_func()
Dgenerated_cases.c.h3383 assert(PyBool_Check(cond)); in TARGET()
3446 assert(PyBool_Check(cond)); in TARGET()
4920 assert(PyBool_Check(cond)); in TARGET()
4953 assert(PyBool_Check(cond)); in TARGET()
4987 assert(PyBool_Check(cond)); in TARGET()
5006 assert(PyBool_Check(cond)); in TARGET()
5924 DEOPT_IF(!PyBool_Check(value), TO_BOOL); in TARGET()
6049 assert(PyBool_Check(value)); in TARGET()
/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/upb/python/
Dprotobuf.c48 if (!arg || !PyBool_Check(arg)) { in PyUpb_SetAllowOversizeProtos()
/external/pytorch/torch/csrc/jit/python/
Dpython_arg_flatten.cpp76 } else if (PyBool_Check(obj)) { // Wrap bools in Bool tensors in flatten_rec()
/external/tensorflow/tensorflow/python/framework/
Dop_def_util.cc126 if (PyBool_Check(value)) { in operator ()()

123