[Model] Remove unnecessary weight initialization logic (#11736)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: Isotr0py <2037008807@qq.com> Co-authored-by: Isotr0py <2037008807@qq.com>
This commit is contained in:
@@ -141,8 +141,6 @@ class Resampler2_5(BaseResampler):
|
||||
self.max_size = max_size
|
||||
self._set_2d_pos_cache(self.max_size)
|
||||
|
||||
self.apply(self._init_weights)
|
||||
|
||||
def _set_2d_pos_cache(self,
|
||||
max_size: Tuple[int, int],
|
||||
device: torch.types.Device = "cpu") -> None:
|
||||
|
||||
Reference in New Issue
Block a user