Hi there. I’ve just got into a problem with building an SD-graph which uses a huge adjacent matrix (graph-related network, in my case it has almost 1 bln. elements). I try to trigger the node activation for the batch in a loop, similar as in a recurrent network (it’s not a conventional way, but still). Each iteration creates thus variables specific to it (let’s say variable_0
, variable_1
etc.). In my case the adjacent matrix is a variable and I can’t get a decent amount of iterations, because for each iteration I use the Gather Op
in order to fetch the needed indexes from the adjacent matrix and this Op creates automatically the gradients variable which is of the same size as the adjacent matrix itself for each iteration. Is there any way to fetch those indexes (they are provided as a placeholder value as a 2D matrix) for each iteration so that there won’t be any duplication of gradients variables for the adjacent matrix? I saw the SDVariable
methods like getView()
but I have no idea if it helps me somehow and if it’s better than Gather Op
Thanks a lot in advance!