def test_basic_vector(self):
        x = theano.tensor.vector()
        inp = np.asarray([2,1,3,2], dtype=config.floatX)
        list_outs_expected = [[np.unique(inp)], 
                              np.unique(inp, True), 
                              np.unique(inp, False, True), 
                              np.unique(inp, True, True)]
        if bool(numpy_ver >= [1, 9]) :
            list_outs_expected.extend([
                                np.unique(inp, False, False, True), 
                                np.unique(inp, True, False, True), 
                                np.unique(inp, False, True, True), 
                                np.unique(inp, True, True, True)])
        for op, outs_expected in zip(self.ops, list_outs_expected) :
            f = theano.function(inputs=[x], outputs=op(x, return_list=True))
            outs = f(inp)
            # Compare the result computed to the expected value.
            for out, out_exp in zip(outs, outs_expected):
                utt.assert_allclose(out, out_exp)
Basic test for a vector.
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tensor/tests/test_extra_ops.py/test_Unique.test_basic_vector