Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Francis-Rings/FlashPortrait
/ Clamp
Class
Clamp
wan/models/wan_vae_tiny.py:17–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
16
17
class
Clamp(nn.Module):
18
def
forward(self, x):
19
return
torch.tanh(x / 3) * 3
20
21
22
class
MemBlock(nn.Module):
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected