• Pascal Lamblin's avatar
    Remove None from return values of grad. · 002872ad
    Pascal Lamblin 提交于
    Also change checks to verify the output dtype of the Op itself, not of
    the inputs or gradient, because it can depend on different things.
    The idea is that if the Op's output is continuous, then the gradient
    should be propagated to the inputs, regardless of whether they are
    continuous or discrete. However, if the output is discrete, then the
    gradient wrt the inputs will be a continuous zero.
    002872ad
名称
最后提交
最后更新
..
tests 正在载入提交数据...
__init__.py 正在载入提交数据...
basic.py 正在载入提交数据...
basic_scipy.py 正在载入提交数据...
basic_sympy.py 正在载入提交数据...
sharedvar.py 正在载入提交数据...