reimplemented allocation wights without scatter_update
reimplemented allocation wights without scatter_update

scatter_update has no registered gradient, which causes a cut in gradients chain between loss and memory parameters

nazoking/DNC-tensorflow,Mostafa-Samir/DNC-tensorflow,nazoking/DNC-tensorflow,Mostafa-Samir/DNC-tensorflow