MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / forward

Method forward

diffusers/examples/community/gluegen.py:101–118  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

99 )
100
101 def forward(self, x):
102 if self.dim_in == self.dim_out:
103 indentity_0 = x
104 x = self.net_sen(x)
105 x += indentity_0
106 x = x.transpose(1, 2)
107
108 indentity_1 = x
109 x = self.net_tok(x)
110 x += indentity_1
111 x = x.transpose(1, 2)
112 else:
113 x = self.net_sen(x)
114 x = x.transpose(1, 2)
115
116 x = self.net_tok(x)
117 x = x.transpose(1, 2)
118 return x
119
120
121class TranslatorNoLN(nn.Module):

Callers

nothing calls this directly

Calls 1

transposeMethod · 0.80

Tested by

no test coverage detected