Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [BUG] Error: 'Key 'dtype_choices' is not in struct' #83

Closed
theworld3 opened this issue Feb 20, 2023 · 2 comments
Closed

馃悰 [BUG] Error: 'Key 'dtype_choices' is not in struct' #83

theworld3 opened this issue Feb 20, 2023 · 2 comments
Labels
question Further information is requested

Comments

@theworld3
Copy link

Description

I wanted to excute nnsmith.model_gen mgen.max_nodes=5 mgen.dtype_choices="[f32]" model.type=onnx debug.viz=false mgen.save=$path. But it reurned :

Could not override 'mgen.dtype_choices'.
To append to your config use +mgen.dtype_choices=[f32]
Key 'dtype_choices' is not in struct
    full_key: mgen.dtype_choices
    object_type=dict

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

When I excuted without mgen.dtype_choices="[f32]", it can work correctly. Could anyone tell me what should I do?

Installation

pip install "nnsmith[torch,onnx]" --upgrade

Reproduction

# Paste the commands or python script for reproducing the issue.

Screenshots

![DESCRIPTION](LINK.png)

Logs

No response

Front-end framework

No response

Version of the front-end framework

No response

Back-end engine

No response

Version of the front-end engine

No response

Other context

No response

@theworld3 theworld3 added the bug Something isn't working label Feb 20, 2023
@ganler
Copy link
Member

ganler commented Feb 20, 2023

Hi @XCY-Joestar it seems you directly installed nnsmith via PyPI. Maybe you can temporarily install nnsmith from GitHub HEAD to use this feature:

pip install "git+https://github.com/ise-uiuc/nnsmith@main#egg=nnsmith[torch,onnx]" --upgrade
# [optional] add more front- and back-ends such as [tf] and [tvm,ort,xla,...] in "[...]"

My apologies for not uptating the PyPI channel timely. We will recently release the v0.1.0 version where such features are enabled by default.

@ganler ganler added question Further information is requested and removed bug Something isn't working labels Feb 21, 2023
@theworld3
Copy link
Author

theworld3 commented Feb 21, 2023

@ganler Thank you for your reply. I can use nnsmtih correctly after pip install "git+https://github.com/ise-uiuc/nnsmith@main#egg=nnsmith[torch,onnx]" --upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants