About the gating mechanism
See original GitHub issueHi @svjan5 , After reading your source code, I have found some places that make me confused. In the paper, the formula you mentioned is like: And where: while in your code, it is like this:
with tf.name_scope("in_arcs-%s_name-%s_layer-%d" % (lbl, name, layer)):
inp_in = tf.tensordot(gcn_in, w_in, axes=[2,0]) + tf.expand_dims(b_in, axis=0)
adj_matrix = tf.transpose(adj_mat[lbl], [0,2,1])
in_t = self.aggregate(inp_in, adj_matrix)
if self.p.dropout != 1.0: in_t = tf.nn.dropout(in_t, keep_prob=self.p.dropout)
if w_gating:
inp_gin = tf.tensordot(gcn_in, tf.sigmoid(w_gin), axes=[2,0]) + tf.expand_dims(b_gin, axis=0)
in_act = self.aggregate(inp_gin, adj_matrix)
else:
in_act = in_t
It seems to me that the calculated in_t
or inp_in
is never used when enable gating which might not align with the formula where there is a multiplication in between. And the weight w_in
and w_out
would never be updated in the code. May you please give me some information how the calculated in_t
or the w_in
and w_out
are used under gating mechanism in your code?
Many thanks.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Gating (electrophysiology) - Wikipedia
In electrophysiology, the term gating refers to the opening (activation) or closing (by deactivation or inactivation) of ion channels.
Read more >Improving the Gating Mechanism of Recurrent Neural Networks
Abstract: Gating mechanisms are widely used in neural network models, where they allow gradients to backpropagate more easily through depth ...
Read more >Mechanisms Gating the Flow of Information in the Cortex
The notion of gating as a mechanism capable of controlling the flow of information from one set of neurons to another, has been...
Read more >Mechanisms Gating the Flow of Information in the Cortex - NCBI
The notion of gating as a mechanism capable of controlling the flow of information from one set of neurons to another, has been...
Read more >A gating mechanism of pentameric ligand-gated ion channels
They are oligomeric protein assemblies that convert a chemical signal into an ion flux through the postsynaptic membrane, but the molecular mechanism of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @svjan5 , I have created a pull request with changes I mentioned above. Please have a check.
Many thanks
Thanks for your help!