예제 #1
0
파일: test_master.py 프로젝트: cc13ny/ape
def test_sanitize():
    x = theano.tensor.matrix('x')
    y = x.T
    z = y + 1
    sanitize((x, ), (z, ))
    assert all(v.name and '.' not in v.name for v in (x, y, z))
    assert unique((x, y, z))
    print x, y, z
예제 #2
0
파일: test_master.py 프로젝트: mrocklin/ape
def test_sanitize():
    x = theano.tensor.matrix('x')
    y = x.T
    z = y + 1
    sanitize((x,), (z,))
    assert all(v.name and '.' not in v.name for v in (x,y,z))
    assert unique((x,y,z))
    print x, y, z
예제 #3
0
def test_unique():
    assert unique('abc')
    assert not unique('aab')
예제 #4
0
파일: test_util.py 프로젝트: mrocklin/ape
def test_unique():
    assert unique('abc')
    assert not unique('aab')