Skip to content

Commit

Permalink
Update hytra_supernet.py
Browse files Browse the repository at this point in the history
use restricted paths by default
  • Loading branch information
changlin31 committed Aug 31, 2021
1 parent 3e7018b commit fa90337
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions searching/bossnas/models/supernets/hytra_supernet.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import torch.nn as nn

from bossnas.models.utils.hytra_paths import all_path
from bossnas.models.utils.hytra_paths import all_path, restricted_path
from bossnas.models.operations.operation_dict import OPS
from bossnas.models.operations.operation_dict import reset
from openselfsup.models.registry import BACKBONES
Expand Down Expand Up @@ -253,7 +253,8 @@ def set_forward_cfg(self, method='random', start_block=0): # support method: un
return forward_op

def get_all_path(self, start_block):
return all_path[self.stage_depths[start_block]]
return restricted_path[self.stage_depths[start_block]]
# return all_path[self.stage_depths[start_block]]

def reset_params(self):
self.apply(reset)
Expand Down

0 comments on commit fa90337

Please sign in to comment.