Home
last modified time | relevance | path

Searched refs:is_tuple (Results 1 – 25 of 35) sorted by relevance

12

/external/bazel-skylib/tests/
Dtypes_tests.bzl131 """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/
Dfix_raise.py29 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):
Dfix_throw.py14 from ..fixer_util import Name, Call, ArgList, Attr, is_tuple
40 if is_tuple(val):
Dfix_except.py28 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/
Dfix_raise.py29 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):
Dfix_throw.py14 from ..fixer_util import Name, Call, ArgList, Attr, is_tuple
40 if is_tuple(val):
Dfix_except.py28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms
77 if is_tuple(N) or is_list(N):
Dfix_print.py21 from ..fixer_util import Name, Call, Comma, String, is_tuple
/external/tensorflow/tensorflow/compiler/xla/pjrt/
Dtracked_tfrt_cpu_device_buffer.cc74 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()
Dtracked_tfrt_cpu_device_buffer.h91 bool is_tuple,
97 bool is_tuple,
/external/tensorflow/tensorflow/compiler/xla/python_api/
Dxla_shape.py67 def is_tuple(self): member in Shape
71 if self.is_tuple():
84 if not self.is_tuple():
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_util.py29 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/
Dtest_util.py32 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/
DSkEnumerate.h19 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/
Dbuffer_assignment.h94 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/
Dloop_emitter.cc70 llvm::IRBuilder<>* b, bool is_tuple) { in MakeBodyEmitter() argument
73 if (!is_tuple) { in MakeBodyEmitter()
Dloop_emitter.h43 llvm::IRBuilder<>* b, bool is_tuple);
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_xfeed.cc117 bool is_tuple) { in TransferBuffersFromOutfeedInternal() argument
154 if (is_tuple) { in TransferBuffersFromOutfeedInternal()
/external/rust/crates/url/src/
Dorigin.rs70 pub fn is_tuple(&self) -> bool { in is_tuple() method
/external/python/cpython3/Objects/
Dgenericaliasobject.c306 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/
Dtest_future.py163 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/
Dlibxml.c3457 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/
Dtypes.bzl147 is_tuple = _is_tuple,
/external/python/jinja/src/jinja2/
Dparser.py633 is_tuple = False
641 is_tuple = True
646 if not is_tuple:
/external/libchrome/third_party/jinja2/
Dparser.py614 is_tuple = False
622 is_tuple = True
627 if not is_tuple:

12