/external/bazel-skylib/tests/ |
D | types_tests.bzl | 131 """Unit tests for types.is_tuple.""" 135 asserts.true(env, types.is_tuple(())) 136 asserts.true(env, types.is_tuple((1,))) 138 asserts.false(env, types.is_tuple(1)) 139 asserts.false(env, types.is_tuple("s")) 140 asserts.false(env, types.is_tuple({})) 141 asserts.false(env, types.is_tuple(True)) 142 asserts.false(env, types.is_tuple([])) 143 asserts.false(env, types.is_tuple([1])) 144 asserts.false(env, types.is_tuple(None)) [all …]
|
/external/python/cpython3/Lib/lib2to3/fixes/ |
D | fix_raise.py | 29 from ..fixer_util import Name, Call, Attr, ArgList, is_tuple 53 if is_tuple(exc): 54 while is_tuple(exc): 67 if is_tuple(val):
|
D | fix_throw.py | 14 from ..fixer_util import Name, Call, ArgList, Attr, is_tuple 40 if is_tuple(val):
|
D | fix_except.py | 28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms 77 if is_tuple(N) or is_list(N):
|
/external/python/cpython2/Lib/lib2to3/fixes/ |
D | fix_raise.py | 29 from ..fixer_util import Name, Call, Attr, ArgList, is_tuple 53 if is_tuple(exc): 54 while is_tuple(exc): 67 if is_tuple(val):
|
D | fix_throw.py | 14 from ..fixer_util import Name, Call, ArgList, Attr, is_tuple 40 if is_tuple(val):
|
D | fix_except.py | 28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms 77 if is_tuple(N) or is_list(N):
|
D | fix_print.py | 21 from ..fixer_util import Name, Call, Comma, String, is_tuple
|
/external/tensorflow/tensorflow/compiler/xla/pjrt/ |
D | tracked_tfrt_cpu_device_buffer.cc | 74 bool is_tuple, in TrackedTfrtCpuDeviceBuffer() argument 78 : TrackedTfrtCpuDeviceBuffer(is_tuple, std::move(buffers), in TrackedTfrtCpuDeviceBuffer() 83 bool is_tuple, in TrackedTfrtCpuDeviceBuffer() argument 87 : is_tuple_(is_tuple), in TrackedTfrtCpuDeviceBuffer() 92 if (is_tuple) { in TrackedTfrtCpuDeviceBuffer()
|
D | tracked_tfrt_cpu_device_buffer.h | 91 bool is_tuple, 97 bool is_tuple,
|
/external/tensorflow/tensorflow/compiler/xla/python_api/ |
D | xla_shape.py | 67 def is_tuple(self): member in Shape 71 if self.is_tuple(): 84 if not self.is_tuple():
|
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_util.py | 29 def is_tuple(self, string): member in Test_is_tuple 30 return fixer_util.is_tuple(parse(string, strip_levels=2)) 33 self.assertTrue(self.is_tuple("(a, b)")) 34 self.assertTrue(self.is_tuple("(a, (b, c))")) 35 self.assertTrue(self.is_tuple("((a, (b, c)),)")) 36 self.assertTrue(self.is_tuple("(a,)")) 37 self.assertTrue(self.is_tuple("()")) 40 self.assertFalse(self.is_tuple("(a)")) 41 self.assertFalse(self.is_tuple("('foo') % (b, c)"))
|
/external/python/cpython2/Lib/lib2to3/tests/ |
D | test_util.py | 32 def is_tuple(self, string): member in Test_is_tuple 33 return fixer_util.is_tuple(parse(string, strip_levels=2)) 36 self.assertTrue(self.is_tuple("(a, b)")) 37 self.assertTrue(self.is_tuple("(a, (b, c))")) 38 self.assertTrue(self.is_tuple("((a, (b, c)),)")) 39 self.assertTrue(self.is_tuple("(a,)")) 40 self.assertTrue(self.is_tuple("()")) 43 self.assertFalse(self.is_tuple("(a)")) 44 self.assertFalse(self.is_tuple("('foo') % (b, c)"))
|
/external/skia/src/core/ |
D | SkEnumerate.h | 19 template <typename> struct is_tuple : std::false_type {}; struct 20 template <typename... T> struct is_tuple<std::tuple<T...>> : std::true_type {}; 24 if constexpr (is_tuple<Captured>::value) {
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | buffer_assignment.h | 94 return !is_thread_local() && !is_tuple(); in is_reusable() 107 bool is_tuple() const { return is_tuple_; } in is_tuple() function 108 void set_is_tuple(bool is_tuple) { is_tuple_ = is_tuple; } in set_is_tuple() argument
|
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/ |
D | loop_emitter.cc | 70 llvm::IRBuilder<>* b, bool is_tuple) { in MakeBodyEmitter() argument 73 if (!is_tuple) { in MakeBodyEmitter()
|
D | loop_emitter.h | 43 llvm::IRBuilder<>* b, bool is_tuple);
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | cpu_xfeed.cc | 117 bool is_tuple) { in TransferBuffersFromOutfeedInternal() argument 154 if (is_tuple) { in TransferBuffersFromOutfeedInternal()
|
/external/rust/crates/url/src/ |
D | origin.rs | 70 pub fn is_tuple(&self) -> bool { in is_tuple() method
|
/external/python/cpython3/Objects/ |
D | genericaliasobject.c | 306 int is_tuple = PyTuple_Check(item); in _Py_subs_parameters() local 307 Py_ssize_t nitems = is_tuple ? PyTuple_GET_SIZE(item) : 1; in _Py_subs_parameters() 308 PyObject **argitems = is_tuple ? &PyTuple_GET_ITEM(item, 0) : &item; in _Py_subs_parameters()
|
/external/python/cpython3/Lib/test/ |
D | test_future.py | 163 self, annotation, expected=None, drop_parens=False, is_tuple=False, argument 167 expected = annotation if not is_tuple else annotation[1:-1]
|
/external/libxml2/python/ |
D | libxml.c | 3457 int is_tuple = 0; in PyxmlNodeSet_Convert() local 3460 is_tuple = 1; in PyxmlNodeSet_Convert() 3462 is_tuple = 0; in PyxmlNodeSet_Convert() 3480 nodeSet->nodeMax = (is_tuple in PyxmlNodeSet_Convert() 3498 PyxmlNode_Get (is_tuple in PyxmlNodeSet_Convert() 3516 int is_tuple = 0; in PystringSet_Convert() local 3521 is_tuple = 1; in PystringSet_Convert() 3523 is_tuple = 0; in PystringSet_Convert() 3534 count = (is_tuple in PystringSet_Convert() 3551 (is_tuple in PystringSet_Convert()
|
/external/bazel-skylib/lib/ |
D | types.bzl | 147 is_tuple = _is_tuple,
|
/external/python/jinja/src/jinja2/ |
D | parser.py | 633 is_tuple = False 641 is_tuple = True 646 if not is_tuple:
|
/external/libchrome/third_party/jinja2/ |
D | parser.py | 614 is_tuple = False 622 is_tuple = True 627 if not is_tuple:
|