1.Theano中的scan函数 目前先弱弱的认为:相当于symbolic的for循环吧,或者说计算图上的for循环,也可以用来替代repeat-until. 与scan相比,scan_checkpoint减少了内存的使用,只保存最后一步的计算结果. 2.Theano中的shared变量 Variable with Storage that is shared between functions that it appears in.多个函数之间共享存储空间的变量--Theano的共享变量. S
在 lua 中实现函数的重载.注:好吧,lua中原来可以实现重载...local function create() local arg_table = {} local function dispatcher (...) local tbl = arg_table local n = select ("#",...) local last_match for i = 1,n do local t = type(select(i,...)) local n = tbl[t] last_