提交 90764f70 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Typo fixes

上级 18c84492
......@@ -27,9 +27,9 @@ Interface changes
instance, function([x, y], [y]). You can use the kwarg
``on_unused_input={'raise', 'warn', 'ignore'}`` to control this.
(Pascal L.)
* tensor.alloc() now raise an error during graph build time
when we try to create less dimensions then the number of dimensions
the provieded value have. In the past, the error was at run time.
* tensor.alloc() now raises an error during graph build time
when we try to create less dimensions than the number of dimensions
the provided value have. In the past, the error was at run time.
(Frederic B.)
New Features
......
......@@ -2802,8 +2802,8 @@ class Alloc(gof.Op):
sh = [as_tensor_variable(s) for s in shape]
bcast = []
if v.ndim > len(sh):
raise TypeError("Alloc value to use have more dimensions"
" then the specified dimensions",
raise TypeError("The Alloc value to use has more dimensions"
" than the specified dimensions",
v.ndim, len(sh))
for i, s in enumerate(sh):
if s.type.dtype[:3] not in ('int', 'uin'):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论