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]]],
71 pylist=[[[[1, 2], [3, 4]], [[5, 6], [7, 8]]],
75 pylist=[[[[1, 2], [3, 4]], [[5, 6], [7, 8]]],
[all …]
Dragged_constant_value_op_test.py38 dict(pylist='x', expected_shape=()),
42 dict(pylist=[1, 2, 3], expected_shape=(3,)),
46 dict(pylist=[[1, 2, 3], [4], [5, 6]], expected_shape=(3, None)),
47 dict(pylist=[[1, 2, 3], [4, 5, 6], [7, 8, 9]], expected_shape=(3, None)),
52 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]],
55 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]],
59 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]],
63 pylist=[[[1, 2], [3, 4]], [], [[5, 6], [7, 8], [9, 0]]],
70 pylist=[[[[1, 2], [3, 4]], [[5, 6], [7, 8]]],
74 pylist=[[[[1, 2], [3, 4]], [[5, 6], [7, 8]]],
[all …]
Dragged_factory_ops.py34 def constant(pylist, dtype=None, ragged_rank=None, inner_shape=None, name=None): argument
75 constant_op.constant, pylist, dtype, ragged_rank,
80 def constant_value(pylist, dtype=None, ragged_rank=None, inner_shape=None): argument
127 def _inner_factory(pylist, dtype, shape, name=None): # pylint: disable=unused-argument argument
128 return np.reshape(np.array(pylist, dtype=dtype), shape)
130 return _constant_value(_ragged_factory, _inner_factory, pylist, dtype,
134 def _constant_value(ragged_factory, inner_factory, pylist, dtype, ragged_rank, argument
155 if ragged_tensor.is_ragged(pylist):
158 if not isinstance(pylist, (list, tuple)):
162 (pylist, ragged_rank))
[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.assertRaggedEqual(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 …]
Dconvert_to_tensor_or_ragged_tensor_op_test.py41 dict(pylist=[[1, 2], [3]]),
42 dict(pylist=[[1, 2], [3]], preferred_dtype=dtypes.float32),
43 dict(pylist=[[1, 2], [3]], preferred_dtype=dtypes.string),
45 def testConvertRaggedTensor(self, pylist, dtype=None, preferred_dtype=None): argument
46 rt = ragged_factory_ops.constant(pylist)
53 pylist=[[1, 2], [3, 4]],
58 pylist=[[1, 2], [3, 4]],
64 pylist, argument
68 rt = ragged_factory_ops.constant(pylist)
135 dict(pylist=[[1, 2], [3, 4]]),
[all …]
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.ragged.pbtxt9 …argspec: "args=[\'pylist\', \'dtype\', \'ragged_rank\', \'inner_shape\', \'name\'], varargs=None, …
13 …argspec: "args=[\'pylist\', \'dtype\', \'ragged_rank\', \'inner_shape\'], varargs=None, keywords=N…
/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.c66 } pylist; typedef
69 reap_obj(pylist fd2obj[FD_SETSIZE + 1]) in reap_obj()
83 seq2set(PyObject *seq, fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) in seq2set()
144 set2list(fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) in set2list()
186 pylist *rfd2obj, *wfd2obj, *efd2obj; in select_select()
194 pylist rfd2obj[FD_SETSIZE + 1]; in select_select()
195 pylist wfd2obj[FD_SETSIZE + 1]; in select_select()
196 pylist efd2obj[FD_SETSIZE + 1]; in select_select()
235 rfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select()
236 wfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1); in select_select()
[all …]
Dmain.c1323 PyObject *pylist = PyList_New(len); in _Py_wstrlist_as_pylist() local
1324 if (pylist == NULL) { in _Py_wstrlist_as_pylist()
1331 Py_DECREF(pylist); in _Py_wstrlist_as_pylist()
1334 PyList_SET_ITEM(pylist, i, v); in _Py_wstrlist_as_pylist()
1336 return pylist; in _Py_wstrlist_as_pylist()
/external/python/cpython3/Lib/
Dpickletools.py988 pylist = StackObject( variable
1436 stack_after=[pylist],
1443 stack_before=[pylist, anyobject],
1444 stack_after=[pylist],
1457 stack_before=[pylist, markobject, stackslice],
1458 stack_after=[pylist],
1472 stack_after=[pylist],
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.ragged.pbtxt5 …argspec: "args=[\'pylist\', \'dtype\', \'ragged_rank\', \'inner_shape\', \'name\'], varargs=None, …