

def test1(self):
    linker_classes_involved = []
    predef_modes = ['FAST_COMPILE', 'FAST_RUN', 'DEBUG_MODE']
    predef_modes.append(ProfileMode())
    if theano.config.cxx:
        linkers = ['py', 'c|py', 'c|py_nogc', 'vm', 'vm_nogc', 'cvm', 'cvm_nogc']
    else:
        linkers = ['py', 'c|py', 'c|py_nogc', 'vm', 'vm_nogc']
    modes = (predef_modes + [Mode(linker, 'fast_run') for linker in linkers])
    for mode in modes:
        x = T.matrix()
        y = T.vector()
        f = theano.function([linker_classes_involved, y], (x + y), mode=mode)
        f([[1, 2], [3, 4]], [5, 6])
        linker_classes_involved.append(f.maker.mode.linker.__class__)
    assert (5 == len(set(linker_classes_involved)))

dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/compile/tests/test_modes.py T_bunch_of_modes.test1/VarMisuse@130/222 `x`->`linker_classes_involved`