示例#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
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')