MCPcopy Create free account
hub / github.com/BIT-MJY/CVTNet / __init__

Method __init__

modules/cvtnet.py:83–88  ·  view source on GitHub ↗
(self, d_model, d_ff=1024, dropout=0.1)

Source from the content-addressed store, hash-verified

81
82class FeedForward(nn.Module):
83 def __init__(self, d_model, d_ff=1024, dropout=0.1):
84 super().__init__()
85
86 self.linear_1 = nn.Linear(d_model, d_ff)
87 self.dropout = nn.Dropout(dropout)
88 self.linear_2 = nn.Linear(d_ff, d_model)
89
90 def forward(self, x):
91 x = self.dropout(F.relu(self.linear_1(x)))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected