@@ -172,19 +172,19 @@ To run the tutorial, follow the steps below:
...
@@ -172,19 +172,19 @@ To run the tutorial, follow the steps below:
2. **Search**: Based on the architecture of simplified PFLD, the setting of multi-stage search space and hyper-parameters for searching should be firstly configured to construct the supernet. For example,
2. **Search**: Based on the architecture of simplified PFLD, the setting of multi-stage search space and hyper-parameters for searching should be firstly configured to construct the supernet. For example,
.. code-block::
.. code-block:: python
from lib.builder import search_space
from lib.builder import search_space
from lib.ops import PRIMITIVES
from lib.ops import PRIMITIVES
from lib.supernet import PFLDInference, AuxiliaryNet
from lib.supernet import PFLDInference, AuxiliaryNet
from nni.algorithms.nas.pytorch.fbnet import LookUpTable, NASConfig,
from nni.algorithms.nas.pytorch.fbnet import LookUpTable, NASConfig
# configuration of hyper-parameters
# configuration of hyper-parameters
# search_space defines the multi-stage search space
# search_space defines the multi-stage search space