提交 bbe27f18 authored 作者: Olivier Breuleux's avatar Olivier Breuleux

small oversight in merge

上级 c4a7d393
......@@ -284,13 +284,8 @@ class _testCase_dot(unittest.TestCase):
y = dense_from_sparse(dot(w.T, xw))
diff = x-y
loss = tensor.sum(tensor.sqr(diff))
<<<<<<< /u/breuleuo/hg/theano2/_test_sparse.py
gw = gradient.grad(loss, w)
trainfn = compile.function([x, w], [y, loss, gw])
=======
gw = tensor.grad(loss, w)
trainfn = compile.Function([x, w], [y, loss, gw])
>>>>>>> /tmp/_test_sparse.py~other.JkNMX5
trainfn = compile.function([x, w], [y, loss, gw])
x = xorig
w = mtype((500,3))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论