Skip to content

torch.fx.Graph.print_tabular raises UnboundLocalError when tabulate is not installed #104166

Description

@BowenBao

An ImportError should have been raised, however the exception is captured and in the except block it only prints a message.

Perhaps at that point the code should either re-raise or return.

cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionablemodule: fxoncall: fxtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions