Home
last modified time | relevance | path

Searched refs:tolist (Results 1 – 25 of 96) sorted by relevance

1234

/external/python/cpython3/Lib/test/
Dtest_buffer.py727 x = nd.tolist()
811 rep = result.tolist() if fmt else result.tobytes()
941 rep = result.tolist() if fmt else result.tobytes()
968 lst = ex.tolist()
971 lst = nd.tolist()
1220 self.assertRaises(ValueError, nd.tolist)
1321 self.assertEqual(nd.tolist(), farray(items, (3, 4)))
1414 x = nd[...]; self.assertEqual(x.tolist(), nd.tolist())
1417 x = mv[...]; self.assertEqual(x.tolist(), nd.tolist())
1424 self.assertEqual(nd.tolist(), 1)
[all …]
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_test_util.py40 return a.tolist() if isinstance(a, np.ndarray) else a
42 return a.tolist()
46 return np.array(a).tolist()
86 return value.tolist()
Dragged_tensor_value.py102 values_as_list = self._values.tolist()
/external/python/cpython2/Lib/
Ddifflib.py1823 fromlist,tolist = [],[]
1825 self._split_line(tolist,toline,totext)
1828 while fromlist or tolist:
1833 if tolist:
1834 todata = tolist.pop(0)
1846 fromlist,tolist,flaglist = [],[],[]
1852 tolist.append(self._format_line(1,flag,*todata))
1856 tolist.append(None)
1858 return fromlist,tolist,flaglist
1894 def _convert_flags(self,fromlist,tolist,flaglist,context,numlines): argument
[all …]
/external/python/cpython3/Lib/
Ddifflib.py1863 fromlist,tolist = [],[]
1865 self._split_line(tolist,toline,totext)
1868 while fromlist or tolist:
1873 if tolist:
1874 todata = tolist.pop(0)
1886 fromlist,tolist,flaglist = [],[],[]
1892 tolist.append(self._format_line(1,flag,*todata))
1896 tolist.append(None)
1898 return fromlist,tolist,flaglist
1934 def _convert_flags(self,fromlist,tolist,flaglist,context,numlines): argument
[all …]
/external/python/cpython2/Lib/ctypes/test/
Dtest_frombuffer.py21 self.assertEqual(x[:], a.tolist())
24 self.assertEqual(x[:], a.tolist())
42 self.assertEqual(x[:], a.tolist()[1:])
74 self.assertEqual(x[:], a.tolist()[1:])
/external/tensorflow/tensorflow/python/ops/
Dgradient_checker_v2_test.py225 inp_data.tolist(),
230 hidden_weight_data.tolist(),
235 hidden_bias_data.tolist(),
240 sm_weight_data.tolist(),
245 sm_bias_data.tolist(),
262 label_data.tolist(),
Dgradient_checker_test.py231 inp_data.tolist(),
236 hidden_weight_data.tolist(),
241 hidden_bias_data.tolist(),
246 sm_weight_data.tolist(),
251 sm_bias_data.tolist(),
274 label_data.tolist(),
/external/python/cpython3/Lib/ctypes/test/
Dtest_frombuffer.py21 self.assertEqual(x[:], a.tolist())
24 self.assertEqual(x[:], a.tolist())
71 self.assertEqual(x[:], a.tolist()[1:])
115 self.assertEqual(x[:], a.tolist()[1:])
/external/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_shuffle_queue_test.py256 self.assertEqual([], self.evaluate(dequeued_t).tolist())
258 self.assertEqual([], self.evaluate(dequeued_t).tolist())
266 self.assertEqual([], self.evaluate(dequeued_t).tolist())
268 self.assertEqual([], self.evaluate(dequeued_t).tolist())
340 results = self.evaluate(dequeued_t).tolist()
353 results = self.evaluate(dequeued_t).tolist()
376 results.extend(zip(float_val, int_val.tolist()))
379 results.extend(zip(float_val, int_val.tolist()))
384 results.append((float_val, int_val.tolist()))
387 results.append((float_val, int_val.tolist()))
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dreverse_ops_test.py68 self.assertEqual(pval[slices].flatten().tolist(), rval.flatten().tolist())
/external/tensorflow/tensorflow/python/autograph/impl/
Dapi_test.py75 self.assertListEqual([0, 1], self.evaluate(x).tolist())
96 self.assertListEqual([0, 1], self.evaluate(x).tolist())
167 self.assertListEqual([0, 1], self.evaluate(x).tolist())
206 self.assertListEqual([0, 1], self.evaluate(x).tolist())
484 self.assertListEqual([1, 2], self.evaluate(x).tolist())
500 self.assertListEqual([1, 2], self.evaluate(x).tolist())
/external/tensorflow/tensorflow/python/kernel_tests/
Dbarrier_ops_test.py130 idx = keys_val.tolist().index(k)
166 idx = keys_val.tolist().index(k)
179 idx = keys_val.tolist().index(k)
225 idx = keys_val.tolist().index(k)
247 idx = keys_val.tolist().index(k)
438 idx = keys_val.tolist().index(k)
492 idx = keys_val.tolist().index(k)
Dbetainc_op_test.py151 space = np.logspace(-8, 5).tolist()
152 space_x = np.linspace(1e-16, 1 - 1e-16).tolist()
Dinplace_ops_test.py200 self.assertEqual(val.tolist(), [[b"", b""]])
203 self.assertEqual(val.tolist(), [[b"", b""]])
/external/tensorflow/tensorflow/contrib/text/python/ops/
Dskip_gram_ops_test.py230 self.assertNotEqual(tokens_1_eval.tolist(), tokens_2_eval.tolist())
232 self.assertNotEqual(labels_1_eval.tolist(), labels_2_eval.tolist())
/external/skqp/experimental/tools/
Dgenerate-unicode-test-txt65 base64.b64decode(valid_codepoint_data))).tolist():
/external/skia/experimental/tools/
Dgenerate-unicode-test-txt65 base64.b64decode(valid_codepoint_data))).tolist():
/external/tensorflow/tensorflow/python/util/
Dserialization.py48 return obj.tolist()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_RaggedRange.pbtxt37 >>> print result.eval().tolist()
/external/tensorflow/tensorflow/contrib/learn/python/learn/learn_io/
Ddask_io.py50 divisions = np.cumsum(lengths).tolist()
/external/tensorflow/tensorflow/contrib/slim/python/slim/data/
Dtest_utils.py35 value=ndarray.flatten().tolist()))
/external/fonttools/Lib/fontTools/ttLib/tables/
DC_P_A_L_.py62 return result.tolist()
70 return result.tolist()
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dparallel_interleave_dataset_serialization_test.py68 self.num_repeats).tolist()
/external/tensorflow/tensorflow/python/keras/utils/
Dio_utils.py102 idx = (self.start + key).tolist()

1234