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

Typo fixes

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