提交 283b66d5 authored 作者: Frederic's avatar Frederic

make the exercices solutions files executables.

上级 92fd85fd
#!/usr/bin/env python
# Theano tutorial
# Solution to Exercise in section 'Baby Steps - Algebra'
......@@ -8,4 +8,3 @@ b = theano.tensor.vector() # declare variable
out = a ** 2 + b ** 2 + 2 * a * b # build symbolic expression
f = theano.function([a, b], out) # compile function
print f([1, 2], [4, 5]) # prints [ 25. 49.]
#!/usr/bin/env python
# Theano tutorial
# Solution to Exercise in section 'Extending Theano'
import unittest
import theano
......@@ -164,11 +164,4 @@ class TestSumDiffOp(utt.InferShapeTester):
self.op_class)
if __name__ == "__main__":
t = TestOp('setUp')
t.setUp()
t.test_perform()
# comment out next instruction in case 2 since autotesting of
# gradient of multiple output functions is not implemented yet
t.test_gradient() # enable in case 1, disable in case 2
t.test_infer_shape()
unittest.main()
#!/usr/bin/env python
# Theano tutorial
# Solution to Exercise in section 'Loop'
......
#!/usr/bin/env python
# Theano tutorial
# Solution to Exercise in section 'Configuration Settings and Compiling Modes'
......
#!/usr/bin/env python
# Theano tutorial
# Solution to Exercise in section 'Using the GPU'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论