提交 8e0301c5 authored 作者: Razvan Pascanu's avatar Razvan Pascanu 提交者: Ian Goodfellow

Made the code more semantically coherent

上级 9b850c9c
......@@ -60,7 +60,7 @@ def Rop(f, wrt, eval_points):
if not isinstance(eval_points, (list, tuple)):
eval_points = [eval_points]
if not (using_list or using_tuple):
if not isinstance(f, (list, tuple)):
f = [f]
assert len(wrt) == len(eval_points)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论