def testScalar(self):
    zeros_length_1 = array_ops.zeros(random_ops.random_uniform([1], minval=0, maxval=1, dtype=dtypes.int32), dtype=dtypes.int32)
    scalar = array_ops.zeros(zeros_length_1)
    sort = sort_ops.sort(scalar)
    with self.cached_session():
        with self.assertRaises(errors.InvalidArgumentError):
            sort.eval()
def testScalar(self):
    zeros_length_1 = array_ops.zeros(random_ops.random_uniform([1], minval=0, maxval=1, dtype=dtypes.int32), dtype=dtypes.int32)
    scalar = array_ops.zeros(zeros_length_1)
    sort = sort_ops.sort(scalar)
    with self.cached_session():
        with self.assertRaises(errors.InvalidArgumentError):
            sort.eval()