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

Class ApplyVectorWeights

method/nn_util.py:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 return x + skip
32
33class ApplyVectorWeights(nn.Module):
34 def __init__(self):
35 super(ApplyVectorWeights, self).__init__()
36
37 def forward(self, x: Tensor, weights: Tensor) -> Tensor:
38 return x * weights
39
40class ChannelEmbeddingCompression(nn.Module):
41 def __init__(self, embed_dim, embed_dim_next):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected