/external/tensorflow/tensorflow/python/ops/ragged/ |
D | ragged_const_op_test.py | 39 dict(pylist=b'x', expected_shape=()), 43 dict(pylist=[1, 2, 3], expected_shape=(3,)), 47 dict(pylist=[[1, 2, 3], [4], [5, 6]], expected_shape=(3, None)), 48 dict(pylist=[[1, 2, 3], [4, 5, 6], [7, 8, 9]], expected_shape=(3, None)), 53 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]], 56 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]], 60 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]], 64 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]], 70 pylist=[[[1, 2], np.array([3, np.array(4)])], 74 pylist=[[[1, 2], np.array([3, np.array(4)])], [all …]
|
D | ragged_constant_value_op_test.py | 37 dict(pylist='x', expected_shape=()), 41 dict(pylist=[1, 2, 3], expected_shape=(3,)), 45 dict(pylist=[[1, 2, 3], [4], [5, 6]], expected_shape=(3, None)), 46 dict(pylist=[[1, 2, 3], [4, 5, 6], [7, 8, 9]], expected_shape=(3, None)), 51 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]], 54 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]], 58 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]], 62 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]], 68 pylist=[[[1, 2], np.array([3, np.array(4)])], 72 pylist=[[[1, 2], np.array([3, np.array(4)])], [all …]
|
D | ragged_factory_ops.py | 39 def constant(pylist, dtype=None, ragged_rank=None, inner_shape=None, argument 86 return _constant_value(ragged_factory, constant_op.constant, pylist, dtype, 92 def constant_value(pylist, dtype=None, ragged_rank=None, inner_shape=None, argument 143 def _inner_factory(pylist, dtype, shape, name=None): # pylint: disable=unused-argument argument 144 return np.reshape(np.array(pylist, dtype=dtype), shape) 146 return _constant_value(_ragged_factory, _inner_factory, pylist, dtype, 150 def _constant_value(ragged_factory, inner_factory, pylist, dtype, ragged_rank, argument 171 if ragged_tensor.is_ragged(pylist): 174 if not isinstance(pylist, (list, tuple)) and np.ndim(pylist) == 0: 178 (pylist, ragged_rank)) [all …]
|
D | convert_to_tensor_or_ragged_tensor_op_test.py | 40 dict(pylist=[[1, 2], [3]]), 41 dict(pylist=[[1, 2], [3]], preferred_dtype=dtypes.float32), 42 dict(pylist=[[1, 2], [3]], preferred_dtype=dtypes.string), 46 pylist=[np.array([1, 2]), np.array([3])], 48 dict(pylist=np.array([[1, 2], [3]]), preferred_dtype=dtypes.float32), 49 dict(pylist=np.array([[1, 2], [3]]), preferred_dtype=dtypes.string), 51 pylist=[np.array([[1], np.array([2])]), [np.array([3])]], 53 dict(pylist=[np.array(1)], preferred_dtype=dtypes.string), 55 def testConvertRaggedTensor(self, pylist, dtype=None, preferred_dtype=None): argument 56 rt = ragged_factory_ops.constant(pylist) [all …]
|
D | ragged_eager_test.py | 33 dict(pylist=[[b'a', b'b'], [b'c']]), 34 dict(pylist=[[[1, 2], [3]], [[4, 5, 6], [], [7]]]), 35 dict(pylist=[[[1, 2], [3, 4]], [[5, 6], [], [7, 8]]], ragged_rank=1), 37 def testRaggedTensorToList(self, pylist, ragged_rank=None): argument 38 rt = ragged_factory_ops.constant(pylist, ragged_rank) 39 self.assertAllEqual(rt, pylist) 42 dict(pylist=[[b'a', b'b'], [b'c']]), 43 dict(pylist=[[[1, 2], [3]], [[4, 5, 6], [], [7]]]), 45 def testRaggedTensorStr(self, pylist): argument 46 rt = ragged_factory_ops.constant(pylist) [all …]
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.ragged.pbtxt | 13 …argspec: "args=[\'pylist\', \'dtype\', \'ragged_rank\', \'inner_shape\', \'name\', \'row_splits_dt… 17 …argspec: "args=[\'pylist\', \'dtype\', \'ragged_rank\', \'inner_shape\', \'row_splits_dtype\'], va…
|
/external/python/cpython2/Modules/ |
D | selectmodule.c | 67 } pylist; typedef 70 reap_obj(pylist fd2obj[FD_SETSIZE + 1]) in reap_obj() 84 seq2set(PyObject *seq, fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) in seq2set() 145 set2list(fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) in set2list() 187 pylist *rfd2obj, *wfd2obj, *efd2obj; in select_select() 195 pylist rfd2obj[FD_SETSIZE + 1]; in select_select() 196 pylist wfd2obj[FD_SETSIZE + 1]; in select_select() 197 pylist efd2obj[FD_SETSIZE + 1]; in select_select() 240 rfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select() 241 wfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select() [all …]
|
/external/python/cpython2/Lib/ |
D | pickletools.py | 773 pylist = StackObject( variable 1137 stack_after=[pylist], 1144 stack_before=[pylist, anyobject], 1145 stack_after=[pylist], 1158 stack_before=[pylist, markobject, stackslice], 1159 stack_after=[pylist], 1173 stack_after=[pylist],
|
/external/python/cpython3/Modules/ |
D | selectmodule.c | 115 } pylist; typedef 118 reap_obj(pylist fd2obj[FD_SETSIZE + 1]) in reap_obj() 132 seq2set(PyObject *seq, fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) in seq2set() 193 set2list(fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) in set2list() 270 pylist *rfd2obj, *wfd2obj, *efd2obj; in select_select_impl() 278 pylist rfd2obj[FD_SETSIZE + 1]; in select_select_impl() 279 pylist wfd2obj[FD_SETSIZE + 1]; in select_select_impl() 280 pylist efd2obj[FD_SETSIZE + 1]; in select_select_impl() 312 rfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select_impl() 313 wfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select_impl() [all …]
|
/external/python/cpython3/Lib/ |
D | pickletools.py | 1028 pylist = StackObject( variable 1514 stack_after=[pylist], 1521 stack_before=[pylist, anyobject], 1522 stack_after=[pylist], 1535 stack_before=[pylist, markobject, stackslice], 1536 stack_after=[pylist], 1550 stack_after=[pylist],
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.ragged.pbtxt | 9 …argspec: "args=[\'pylist\', \'dtype\', \'ragged_rank\', \'inner_shape\', \'name\', \'row_splits_dt…
|
/external/python/cpython3/Python/ |
D | initconfig.c | 416 PyObject *pylist = PyList_New(list->length); in _PyWideStringList_AsList() local 417 if (pylist == NULL) { in _PyWideStringList_AsList() 424 Py_DECREF(pylist); in _PyWideStringList_AsList() 427 PyList_SET_ITEM(pylist, i, item); in _PyWideStringList_AsList() 429 return pylist; in _PyWideStringList_AsList()
|