提交 c15fa3c0 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Typo fixes

上级 75ff0a33
...@@ -6,7 +6,7 @@ Frequently Asked Questions ...@@ -6,7 +6,7 @@ Frequently Asked Questions
========================== ==========================
TypeError: object of type 'TensorVariable' has no len() TypeError: object of type 'TensorVariable' has no len()
-------------------------------------------------------------- -------------------------------------------------------
If you receive this error: If you receive this error:
...@@ -14,10 +14,10 @@ If you receive this error: ...@@ -14,10 +14,10 @@ If you receive this error:
TypeError: object of type 'TensorVariable' has no len() TypeError: object of type 'TensorVariable' has no len()
We can't implement the __len__ function on Theano Varible. This is We can't implement the __len__ function on Theano Variables. This is
because Python request that we return an integer, but we can't do this because Python requires that this function returns an integer, but we
as we are working with symbolic variable. You can use `var.shape[0]` can't do this as we are working with symbolic variables. You can use
as a workaround. `var.shape[0]` as a workaround.
Also we can't change the error to a better one for some other Python Also we can't change the above error message into a more explicit one
internal behavior that we can't change. because of some other Python internal behavior that can't be modified.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论