question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

About the gating mechanism

See original GitHub issue

Hi @svjan5 , After reading your source code, I have found some places that make me confused. In the paper, the formula you mentioned is like: image And where: image 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Punchwescommented, Nov 13, 2019

Hi @svjan5 , I have created a pull request with changes I mentioned above. Please have a check.

Many thanks

0reactions
svjan5commented, Nov 13, 2019

Thanks for your help!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found