Home
last modified time | relevance | path

Searched refs:pylist (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_const_op_test.py39 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 …]
Dragged_constant_value_op_test.py37 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 …]
Dragged_factory_ops.py39 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 …]
Dconvert_to_tensor_or_ragged_tensor_op_test.py40 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 …]
Dragged_eager_test.py33 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/
Dtensorflow.ragged.pbtxt13 …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/
Dselectmodule.c67 } 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/
Dpickletools.py773 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/
Dselectmodule.c115 } 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/
Dpickletools.py1028 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/
Dtensorflow.ragged.pbtxt9 …argspec: "args=[\'pylist\', \'dtype\', \'ragged_rank\', \'inner_shape\', \'name\', \'row_splits_dt…
/external/python/cpython3/Python/
Dinitconfig.c416 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()