提交 18985e9b authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Don't test gradient of trunc() since it is supposed to always be 0, but the…

Don't test gradient of trunc() since it is supposed to always be 0, but the numerical version will have a different opinion near 1.
上级 cfd45e24
...@@ -2965,7 +2965,8 @@ TruncTester = elemwise_checker( ...@@ -2965,7 +2965,8 @@ TruncTester = elemwise_checker(
sparse.trunc, sparse.trunc,
np.trunc, np.trunc,
test_dtypes=[m for m in sparse.all_dtypes test_dtypes=[m for m in sparse.all_dtypes
if not m in sparse.complex_dtypes]) if not m in sparse.complex_dtypes],
grad_test=False)
SqrTester = elemwise_checker( SqrTester = elemwise_checker(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论