def test_no_aliasing_1(self):
        # B is a shared variable, A is updated with B's contents
        # since B is being updated as well, we don't need to copy anything
        # to avoid aliasing shared variables.
        A = self.shared(numpy.zeros((2, 2)) + .5)
        B = self.shared(.5 - numpy.zeros((2, 2)))
        C = tensor.dmatrix()
        f = pfunc([C], [], updates=[(A, B), (B, C)])
        z = numpy.zeros((2, 2))
        f(z)
        assert not numpy.may_share_memory(data_of(A), data_of(B))
        # Theano tries to maintain its own memory space.
        assert not numpy.may_share_memory(z, data_of(B))
        assert numpy.all(data_of(B) == z)
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/compile/tests/test_pfunc.py/Test_aliasing_rules.test_no_aliasing_1/swapped operands of `-`