8000 Bugged if statement · Issue #410 · pytorch/nestedtensor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.
This repository was archived by the owner on Nov 15, 2022. It is now read-only.
Bugged if statement #410
Open
Open
@hjalmarlucius

Description

@hjalmarlucius

Reading up on the repo and came across this codeline with an if statement that looks bugged. Changing getattr to hasattr should fix things.

if getattr(torch.Tensor, name):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0