cpy18727
Results
2
comments of
cpy18727
i think so too
> Dear DaLao: what's the function of "self.offsets" ? > > self.offsets = np.array((0, *np.cumsum(field_dims)[:-1]), dtype=np.long) def forward(self, x): x = x + x.new_tensor(self.offsets).unsqueeze(0) # e.g. field_dims = [2, 3,...