Skip to content

Commit

Permalink
fix_demo (PaddlePaddle#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
RachelXu7 committed Feb 19, 2022
1 parent 13fb913 commit ab284dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions paddleslim/nas/one_shot/super_mnasnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from paddle import fluid
from paddle.fluid.layer_helper import LayerHelper
import numpy as np
from one_shot_nas import OneShotSuperNet
from .one_shot_nas import OneShotSuperNet

__all__ = ['SuperMnasnet']

Expand Down Expand Up @@ -209,14 +209,14 @@ def __init__(self,

def init_tokens(self):
return [
3, 3, 6, 6, 6, 6, 3, 3, 3, 6, 6, 6, 3, 3, 3, 3, 6, 6, 3, 3, 3, 6,
6, 6, 3, 3, 3, 6, 6, 6, 3, 6, 6, 6, 6, 6
3, 3, 6, 6, 6, 6, 3, 3, 3, 6, 6, 6, 3, 3, 3, 3, 6, 6, 3, 3, 3, 6, 6,
6, 3, 3, 3, 6, 6, 6, 3, 6, 6, 6, 6, 6
]

def range_table(self):
max_v = [
6, 6, 10, 10, 10, 10, 6, 6, 6, 10, 10, 10, 6, 6, 6, 6, 10, 10, 6,
6, 6, 10, 10, 10, 6, 6, 6, 10, 10, 10, 6, 10, 10, 10, 10, 10
6, 6, 10, 10, 10, 10, 6, 6, 6, 10, 10, 10, 6, 6, 6, 6, 10, 10, 6, 6,
6, 10, 10, 10, 6, 6, 6, 10, 10, 10, 6, 10, 10, 10, 10, 10
]
return (len(max_v) * [0], max_v)

Expand Down

0 comments on commit ab284dc

Please sign in to comment.