[FIX] Update mutable_channel_container.py

maybe to solve this issue https://github.com/open-mmlab/mmrazor/issues/591
pull/640/head
Shaun 2024-04-13 08:58:46 +08:00 committed by GitHub
parent 90c7af1fdf
commit ceb1ea7195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class MutableChannelContainer(BaseMutableChannel):
for start, end in copy.copy(self.mutable_channels):
if last_end < start:
self.register_mutable(
SimpleMutableChannel(last_end - start), last_end, start)
SimpleMutableChannel(start - last_end), last_end, start)
last_end = end
if last_end < self.num_channels:
self.register_mutable(