Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenImagingLab/FlashVSR
/ Clamp
Class
Clamp
examples/WanVSR/utils/TCDecoder.py:37–39 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
35
return
nn.Conv2d(n_in, n_out, 3, padding=1, **kwargs)
36
37
class
Clamp(nn.Module):
38
def
forward(self, x):
39
return
torch.tanh(x / 3) * 3
40
41
class
MemBlock(nn.Module):
42
def
__init__(self, n_in, n_out):
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected