MCPcopy Create free account
hub / github.com/MaureenZOU/TSAM / forward

Method forward

src/model/modules.py:85–100  ·  view source on GitHub ↗
(self, inp)

Source from the content-addressed store, hash-verified

83 bias=use_bias, norm=norm, conv_by=conv_by)
84
85 def forward(self, inp):
86 c1 = self.conv1(inp)
87 c2 = self.conv2(c1)
88 c3 = self.conv3(c2)
89 c4 = self.conv4(c3)
90 c5 = self.conv5(c4)
91 c6 = self.conv6(c5)
92
93 a1 = self.dilated_conv1(c6)
94 a2 = self.dilated_conv2(a1)
95 a3 = self.dilated_conv3(a2)
96 a4 = self.dilated_conv4(a3)
97
98 c7 = self.conv7(a4)
99 c8 = self.conv8(c7)
100 return c8, c4, c2 # For skip connection
101
102
103class AttentionDownSampleModule(DownSampleModule):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected