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.py:40–46 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
38
self.drop = nn.Dropout(drop)
39
40
def
forward(self, x):
41
x = self.fc1(x)
42
x = self.act(x)
43
x = self.drop(x)
44
x = self.fc2(x)
45
x = self.drop(x)
46
return
x
47
48
49
def
window_partition(x, window_size):
Callers
1
forward
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected