MCPcopy 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
17class Clamp(nn.Module):
18 def forward(self, x):
19 return torch.tanh(x / 3) * 3
20
21
22class MemBlock(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected