MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / forward

Method forward

k_diffusion/models/modules.py:137–144  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

135 bias=bias)
136
137 def forward(self, x):
138 x=self.conv(x)
139 # return linear_geglu(x, self.weight, self.bias)
140
141 x, gate = x.chunk(2, dim=1)
142 return x * F.gelu(gate)
143
144 return x
145
146
147# Layers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected