microsoft / nni

An open source AutoML toolkit for automate machine learning lifecycle, including feature engineering, neural architecture search, model compression and hyper-parameter tuning.
https://nni.readthedocs.io
MIT License
14.06k stars 1.82k forks source link

model_context module not present in nni.nas #5585

Open ShrutiSarikaChakraborty opened 1 year ago

ShrutiSarikaChakraborty commented 1 year ago

**Hi,

The instruction was - "Use nni.nas.model_context, rather than nni.nas.fixed_arch".

However I am getting error for 2.10 version -,

import nni.nas.model_context Traceback (most recent call last):

File "C:\Users\ADMIN\AppData\Local\Temp\ipykernel_14148\1503585595.py", line 1, in import nni.nas.model_context

ModuleNotFoundError: No module named 'nni.nas.model_context'

I checked that nni.nas has NOT got any module named model_context in either v2.10 or v3.0. Please help.

Thanks**:

Environment:

Configuration:

Log message:

How to reproduce it?:

matluster commented 1 year ago

This is for NAS v3.0.

Also you need: from nni.nas import model_context, rather than import nni.nas.model_context.

Lijiaoa commented 1 year ago

Do you still have other questions or it work for your question? @ShrutiSarikaChakraborty