def _rand_gen(self, *flags):
        '''
        flags: 'int', 'pos', 'scalar', 'row', 'col'
        '''
        val = None
        # dimension
        m = self.m
        n = self.n
        if 'scalar' in flags:
            m = 1.
            n = 1.
        if 'row' in flags:
            m = 1.
        if 'col' in flags:
            n = 1.
        # integer
        if flags in 'int':
            if 'pos' in flags:
                val = np.random.randint(5., size=(m, n)).astype(float) + 1.
            else:
                val = np.random.randint(5., size=(m, n)).astype(float) - 2.
        else:
            if 'pos' in flags:
                val = np.absolute(np.random.randn(m, n)) + 0.1
            else:
                val = np.random.randn(m, n)
        # cap it to avoid blowing up
        val[val > 5.0] = 5.0
        val[val < -5.0] = -5.0
        return val
dataset/ETHPy150Open NervanaSystems/neon/neon/backends/tests/test_autodiff_extra.py/TestAutodiff._rand_gen/swapped operands of `in`