fix
This commit is contained in:
@@ -191,7 +191,7 @@ function kfn_1(params::Dict; device=cpu)
|
||||
for slice in eachslice(w, dims=3)
|
||||
pool = shuffle!([1:row*col...])[1:synapticConnection]
|
||||
for i in pool
|
||||
slice[i] = randn()/10 # assign weight to synaptic connection
|
||||
slice[i] = randn()/10 # assign weight to synaptic connection, start small
|
||||
end
|
||||
end
|
||||
# project 3D w into 4D kfn.lif_wRec (row, col, n, batch)
|
||||
|
||||
Reference in New Issue
Block a user