Python tensorflow.listdiff() Examples

The following are 1 code examples of tensorflow.listdiff(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module tensorflow , or try the search function .
Example #1
Source File: ops.py    From tfdeploy with MIT License 5 votes vote down vote up
def test_ListDiff(self):
        if td._tf_version[:2] <= (0, 11):
            l = np.random.randint(0, 5, 100)
            t1, t2 = tf.listdiff(l, l[::-2])
            self.check(t1)
            self.check(t2)