Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/UX-Decoder/Semantic-SAM
/ forward
Method
forward
semantic_sam/backbone/swin_new.py:35–41 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
33
self.drop = nn.Dropout(drop)
34
35
def
forward(self, x):
36
x = self.fc1(x)
37
x = self.act(x)
38
x = self.drop(x)
39
x = self.fc2(x)
40
x = self.drop(x)
41
return
x
42
43
44
def
window_partition(x, window_size):
Callers
1
forward
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected