提交 3d889b6e authored 作者: Razvan Pascanu's avatar Razvan Pascanu

some small fixes to debug faq

上级 fdb564af
...@@ -130,7 +130,8 @@ This is actually so simple the debugging could be done easily, but it's for ...@@ -130,7 +130,8 @@ This is actually so simple the debugging could be done easily, but it's for
illustrative purposes. As the matrices can't be element-wise multiplied illustrative purposes. As the matrices can't be element-wise multiplied
(unsuitable shapes), we get the following exception: (unsuitable shapes), we get the following exception:
:: .. code-block:: bash
File "ex.py", line 14, in <module> File "ex.py", line 14, in <module>
f(mat1, mat2) f(mat1, mat2)
File "/u/username/Theano/theano/compile/function_module.py", line 451, in File "/u/username/Theano/theano/compile/function_module.py", line 451, in
...@@ -160,7 +161,9 @@ dimensions of the matrices involved, but for the sake of example say we'd ...@@ -160,7 +161,9 @@ dimensions of the matrices involved, but for the sake of example say we'd
need the other dimensions to pinpoint the error. First, we re-launch with need the other dimensions to pinpoint the error. First, we re-launch with
the debugger module and run the program with "c": the debugger module and run the program with "c":
:: .. code-block:: bash
python -m pdb ex.py python -m pdb ex.py
> /u/username/experiments/doctmp1/ex.py(1)<module>() > /u/username/experiments/doctmp1/ex.py(1)<module>()
-> import theano -> import theano
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论