Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions networks/attentive_nas_dynamic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ def module_str(self):
for stage_id, block_idx in enumerate(self.block_group_info):
depth = self.runtime_depth[stage_id]
active_idx = block_idx[:depth]
for idx in active_idx:
_str += self.blocks[idx].module_str + '\n'
_str = '\n'.join([self.blocks[idx].module_str for idx in active_idx])
if not self.use_v3_head:
_str += self.last_conv.module_str + '\n'
else:
Expand Down
3 changes: 1 addition & 2 deletions networks/attentive_nas_static_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ def forward(self, x):
@property
def module_str(self):
_str = self.first_conv.module_str + '\n'
for block in self.blocks:
_str += block.module_str + '\n'
_str = '\n'.join([block.module_str for block in self.blocks])
#_str += self.last_conv.module_str + '\n'
_str += self.classifier.module_str
return _str
Expand Down