提交 b9b082e4 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

remove pylearn2 dependency

上级 fe530848
...@@ -4,9 +4,16 @@ from theano.gof.python25 import OrderedDict ...@@ -4,9 +4,16 @@ from theano.gof.python25 import OrderedDict
from theano.tests import disturb_mem from theano.tests import disturb_mem
import numpy as np import numpy as np
import theano import theano
from pylearn2.utils import sharedX
from theano.printing import var_descriptor from theano.printing import var_descriptor
from cStringIO import StringIO from cStringIO import StringIO
from theano import config
from theano import shared
def sharedX(x, name=None):
x = np.cast[config.floatX](x)
return shared(x, name)
def test_determinism_1(): def test_determinism_1():
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论