Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/diff2flow
/ Clamp
Class
Clamp
diff2flow/tiny_autoencoder.py:14–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
12
13
14
class
Clamp(nn.Module):
15
def
forward(self, x):
16
return
torch.tanh(x / 3) * 3
17
18
19
class
Block(nn.Module):
Callers
1
Decoder
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected