Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Francis-Rings/FlashPortrait
/ forward
Method
forward
wan/models/wan_vae.py:55–58 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
53
self.bias = nn.Parameter(torch.zeros(shape))
if
bias
else
0.
54
55
def
forward(self, x):
56
return
F.normalize(
57
x, dim=(1
if
self.channel_first
else
58
-1)) * self.scale * self.gamma + self.bias
59
60
61
class
Upsample(nn.Upsample):
Callers
2
forward
Method · 0.45
forward
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected