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
Describe the bug
from torchvision.models import resnet18 from torchinfo import summary model = resnet18() a = summary(model, (1, 3, 256, 256))
In python, ipython, this code will not output anything, however, in ptpython, it will output a.
python
ipython
a
Expected behavior in any REPL of python, it shouldn't output.
Screenshots
ptpython: 3.0.21 python: 3.10.9 torchinfo: 1.7.1
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Oh, it looks related to sys.ps1.
sys.ps1
Sorry, something went wrong.
This code use sys.ps1 to detect if it is a REPL, however, python and ipython assign sys.ps1 while ptpython not.
Set sys.ps1 to let some programs know they are run in a REPL
c649e6b
See: TylerYep/torchinfo#216
No branches or pull requests
Describe the bug
In
python
,ipython
, this code will not output anything, however, in ptpython, it will outputa
.Expected behavior
in any REPL of python, it shouldn't output.
Screenshots

ptpython: 3.0.21
python: 3.10.9
torchinfo: 1.7.1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: