Skip to content

[FIX] torch.half warning only applies to size estimation #372

@ego-thales

Description

@ego-thales

Hello dear maintainer(s)!

Could I please have more explanation regarding the following?

https://github.com/TylerYep/torchinfo/blob/e67e74885ce103d7508b71c20e279aee1d9eb4ce/torchinfo/torchinfo.py#L398C1-L412C14

Is it still relevant today ? They logically pop up when using

summary(net, input_size=input_size, dtypes=[torch.half], device=torch.device("cpu"))

Thanks in advance!

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