We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
torch.dtype
The CLI seems to not be able to handle torch.dtype arguments; pretty important for torchvision ToDtype transform.
Using the CLI:
# main.py import torch from jsonargparse import CLI def interface(dtype: torch.dtype) -> None: print(f"dtype: {dtype} ({type(dtype)})") CLI(interface)
Run with:
python3 main.py torch.float32
The above to print:
dtype: torch.float32 (<class 'torch.dtype'>)
pip install jsonargparse[all]
The text was updated successfully, but these errors were encountered:
Fix importable class instances fail to parse and serialize (#446).
85c1bba
Thank you for repointing! This should be fixed with the pull request that was just merged.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
🐛 Bug report
The CLI seems to not be able to handle
torch.dtype
arguments; pretty important for torchvision ToDtype transform.To reproduce
Using the CLI:
Run with:
Expected behaviour:
The above to print:
Environment
pip install jsonargparse[all]
):The text was updated successfully, but these errors were encountered: