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

Added Consensus CNN #162

Open
wants to merge 3 commits into
base: dev-v0.1.0
Choose a base branch
from
Open

Added Consensus CNN #162

wants to merge 3 commits into from

Conversation

rahulmohan
Copy link
Contributor

No description provided.

@@ -143,28 +143,22 @@ def output_ports(self):
'output_logit': NeuralType(('B', 'W', 'D'), LogitsType()),
}

def __init__(self, input_feature_size, num_output_logits,
gru_size=128, gru_layers=2, apply_softmax=False):
def __init__(self, sequence_length, input_feature_size, num_output_logits):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GRU size and layers should remain parameters.

super().__init__()
self.num_output_logits = num_output_logits
self.conv1 = nn.Conv1d(input_feature_size, 128, kernel_size=1, padding=0)
self.gru = nn.GRU(128, 16, 1, batch_first=True, bidirectional=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

16 and 128 should be parameters instead of hard-coded.

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

Successfully merging this pull request may close these issues.

2 participants