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

Method __init__

models/NHits.py:124–126  ·  view source on GitHub ↗
(self, chomp_size)

Source from the content-addressed store, hash-verified

122 : param chomp_size: length of outsample values to skip.
123 """
124 def __init__(self, chomp_size):
125 super(Chomp1d, self).__init__()
126 self.chomp_size = chomp_size
127
128 def forward(self, x):
129 return x[:, :, :-self.chomp_size].contiguous()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected