Skip to content

Commit 99c9734

Browse files
authored
Merge pull request #12 from slacklife/patch-1
Update super_res_k1kxk1_mutator.py
2 parents 17a838a + d477b16 commit 99c9734

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tinynas/spaces/mutator/super_res_k1kxk1_mutator.py

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ def __call__(self, block_id, structure_info_list, minor_mutation = False, *args,
5555
new_out = self.channel_mutator(structure_info['out'])
5656
# Add the constraint: output_channel <= 4*input_channel
5757
new_out = min(4 * structure_info['in'], new_out)
58+
new_out = max(structure_info['in'], new_out)
59+
if block_id < len(structure_info_list) - 1:
60+
new_out = min(structure_info_next['out'], new_out)
5861
# add the constraint: next block, input_channel>output_channel/4.
5962
if block_id < len(
6063
structure_info_list) - 1 and new_out < smart_round(

0 commit comments

Comments
 (0)