Skip to content

incosistent behaviour on ptpython #216

@Freed-Wu

Description

@Freed-Wu

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.

Expected behavior
in any REPL of python, it shouldn't output.

Screenshots
screen-2023-01-24-02-21-25

ptpython: 3.0.21
python: 3.10.9
torchinfo: 1.7.1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions