MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / __init__

Method __init__

models/NHits.py:109–111  ·  view source on GitHub ↗
(self, repeats)

Source from the content-addressed store, hash-verified

107 : repeats: int, the number of repetitions for the vector.
108 """
109 def __init__(self, repeats):
110 super(RepeatVector, self).__init__()
111 self.repeats = repeats
112
113 def forward(self, x):
114 x = x.unsqueeze(-1).repeat(1, 1, self.repeats) # <------------ Mejorar?

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected