• khaotik's avatar
    better handling for NullType and DisconnectedType · 8e8758a3
    khaotik 提交于
    major changes:
    
    - The self._grad_op now only returns zeros_like() for special types like
        NullType() or DisconnectedType()
    - call to grad() will furthur replace returned zero tensors with special
        types
    - proposed gradient override interface :
        (single or list of below)
        Ellipsis -> <no_override>
            (-) since python 2 does not support `[...]` syntax, this may
            result in uglier code in python 2
        None -> NullType()
        int(0) -> DisconnectedType()
        OpFromGraph instance or callable -> <override>
    
    minor changes:
    
    - various typo/bug fix
    
    notes:
    
    - This commit breaks OpFromGraph.R_op, which is expected to be fixed in
    upcoming commits.
    8e8758a3
名称
最后提交
最后更新
..
compat 正在载入提交数据...
compile 正在载入提交数据...
d3viz 正在载入提交数据...
gof 正在载入提交数据...
gpuarray 正在载入提交数据...
misc 正在载入提交数据...
sandbox 正在载入提交数据...
scalar 正在载入提交数据...
scan_module 正在载入提交数据...
sparse 正在载入提交数据...
tensor 正在载入提交数据...
tests 正在载入提交数据...
typed_list 正在载入提交数据...
__init__.py 正在载入提交数据...
configdefaults.py 正在载入提交数据...
configparser.py 正在载入提交数据...
gradient.py 正在载入提交数据...
ifelse.py 正在载入提交数据...
printing.py 正在载入提交数据...
raise_op.py 正在载入提交数据...
updates.py 正在载入提交数据...
version.py 正在载入提交数据...