MCPcopy Create free account
hub / github.com/TimSeizinger/Bokehlicious / forward

Method forward

method/nn_util.py:127–129  ·  view source on GitHub ↗
(self, x: Tensor, att_weights: Tensor = None)

Source from the content-addressed store, hash-verified

125 self.apply1 = ApplyVectorWeights() if apply_att_weights else IdentityMod()
126
127 def forward(self, x: Tensor, att_weights: Tensor = None) -> Tensor:
128 x = self.model(x)
129 return self.apply1(x=x, weights=att_weights)
130
131class ApertureAwareAttention(nn.Module):
132

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected