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

Method forward

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

Source from the content-addressed store, hash-verified

56 )
57
58 def forward(self, x):
59 if self.dim_in == self.dim_out:
60 indentity_0 = x
61 x = self.net_sen(x)
62 x += indentity_0
63 x = x.transpose(1, 2)
64
65 indentity_1 = x
66 x = self.net_tok(x)
67 x += indentity_1
68 x = x.transpose(1, 2)
69 else:
70 x = self.net_sen(x)
71 x = x.transpose(1, 2)
72
73 x = self.net_tok(x)
74 x = x.transpose(1, 2)
75 return x
76
77
78class TranslatorBaseNoLN(nn.Module):

Callers

nothing calls this directly

Calls 1

transposeMethod · 0.80

Tested by

no test coverage detected