提交 31dfb237 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed some references to code recently moved

This is to accomodate changes from f9ca8f9d.
上级 84a48576
...@@ -116,7 +116,7 @@ def test_run_nnet(): ...@@ -116,7 +116,7 @@ def test_run_nnet():
rval_gpu, tg = run_nnet(True, n_in=n_in, n_hid=n_hid) rval_gpu, tg = run_nnet(True, n_in=n_in, n_hid=n_hid)
#print "cpu:", rval_cpu #print "cpu:", rval_cpu
#print "gpu:", rval_gpu #print "gpu:", rval_gpu
abs_diff, rel_diff = theano.tensor.tensor_grad.numeric_grad.abs_rel_err(rval_gpu,rval_cpu) abs_diff, rel_diff = theano.gradient.numeric_grad.abs_rel_err(rval_gpu,rval_cpu)
max_abs_diff = abs_diff.max() max_abs_diff = abs_diff.max()
print "max abs diff=%e max rel diff=%e n_in=%d n_hid=%d"%( print "max abs diff=%e max rel diff=%e n_in=%d n_hid=%d"%(
max_abs_diff, rel_diff.max(), n_in, n_hid) max_abs_diff, rel_diff.max(), n_in, n_hid)
......
...@@ -6,7 +6,7 @@ import numpy.linalg ...@@ -6,7 +6,7 @@ import numpy.linalg
import theano import theano
from theano import tensor, function from theano import tensor, function
from theano.tensor.basic import _allclose from theano.tensor.basic import _allclose
from theano.tensor.tests.test_rop import break_op from theano.tests.test_rop import break_op
from theano.tests import unittest_tools as utt from theano.tests import unittest_tools as utt
from theano import config from theano import config
......
...@@ -13,7 +13,7 @@ else: ...@@ -13,7 +13,7 @@ else:
mode_with_gpu = mode_with_opt.including('gpu', 'scan') mode_with_gpu = mode_with_opt.including('gpu', 'scan')
# TODO: this should replace the verify_grad in tensor/tensor_grad.py # TODO: this should replace the verify_grad in gradient.py
class multiple_outputs_numeric_grad: class multiple_outputs_numeric_grad:
"""WRITEME""" """WRITEME"""
type_eps = {'float64': 1e-7, type_eps = {'float64': 1e-7,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论