提交 8a0fdb36 authored 作者: Frederic's avatar Frederic

Inherit from the right exception to stay compatible with old code.

上级 c84455a3
......@@ -69,7 +69,7 @@ class ShapeError(Exception):
pass
class AsTensorError(Exception):
class AsTensorError(TypeError):
"""Raised when as_tensor_variable isn't able to create a
TensorVariable.
"""
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论