Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about GCN module #1

Open
cymqqqq opened this issue Aug 9, 2020 · 0 comments
Open

question about GCN module #1

cymqqqq opened this issue Aug 9, 2020 · 0 comments

Comments

@cymqqqq
Copy link

cymqqqq commented Aug 9, 2020

class GCN(nn.Module):
def init(self, num_state, num_node, bias=False):
super(GCN, self).init()
self.conv1 = nn.Conv1d(num_node, num_node, kernel_size=1) // why conv1d ?
self.relu = nn.ReLU(inplace=True)
self.conv2 = nn.Conv1d(num_state, num_state, kernel_size=1, bias=bias) //?

def forward(self, x):
    h = self.conv1(x.permute(0, 2, 1)).permute(0, 2, 1)
    h = h - x
    h = self.relu(self.conv2(h))
    return h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant