-
由 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 |