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

Make sure repeats argument is int64

上级 d26dea02
......@@ -794,7 +794,7 @@ def repeat(x, repeats, axis=None):
.. versionadded:: 0.6
"""
repeats = aet.as_tensor_variable(repeats)
repeats = aet.as_tensor_variable(repeats, dtype=np.int64)
if repeats.ndim > 1:
raise ValueError("The dimension of repeats should not exceed 1.")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论