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

Method forward

modules/cvtnet.py:107–112  ·  view source on GitHub ↗
(self, x, mask)

Source from the content-addressed store, hash-verified

105 self.dropout_2 = nn.Dropout(dropout)
106
107 def forward(self, x, mask):
108 x2 = self.norm_1(x)
109 x = x + self.dropout_1(self.attn(x2, x2, x2, mask))
110 x2 = self.norm_2(x)
111 x = x + self.dropout_2(self.ff(x2))
112 return x
113
114
115

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected