提交 470c4724 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Replace old style exception in aesara.tensor.subtensor_opt

上级 6e6e7b16
......@@ -1031,13 +1031,8 @@ def merge_two_slices(fgraph, slice1, len1, slice2, len2):
"""
if not isinstance(slice1, slice):
raise ValueError(
(
"First provided slice should actually be of type"
"slice and not an index !"
),
slice1,
)
raise ValueError("slice1 should be of type `slice`")
sl1, reverse1 = get_canonical_form_slice(slice1, len1)
sl2, reverse2 = get_canonical_form_slice(slice2, len2)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论