Searched refs:isscalar (Results 1 – 12 of 12) sorted by relevance
73 elif np_utils.isscalar(size):94 elif np_utils.isscalar(size):
87 def isscalar(val): function98 return np.isscalar(val)607 if np.isscalar(a_value):622 if np.isscalar(a_value):
1085 self.assertTrue(np_array_ops.isscalar(0.5))1086 self.assertTrue(np_array_ops.isscalar(5))1087 self.assertTrue(np_array_ops.isscalar(False))1088 self.assertFalse(np_array_ops.isscalar([1, 2]))
975 def isscalar(num): function
61 assert np.isscalar(score) and np.isfinite(score)97 assert np.isscalar(score) and np.isfinite(score)
268 if not (np.isscalar(value) or isinstance(value, (list, tuple, np.ndarray))):
215 if not (np.isscalar(value) or isinstance(value, (list, tuple, np.ndarray))):
288 if np.isscalar(arr):
4469 if np.isscalar(axis):
4600 if ((np.isscalar(ksize) and ksize == 0) or
126 return np.dtype(dtype).type(value) if np.isscalar(value) else value.astype(
528 name: "isscalar"