KEMBAR78
Wrong recursive module::load · Issue #14891 · pytorch/pytorch · GitHub
Skip to content

Wrong recursive module::load #14891

@1ytic

Description

@1ytic

🐛 Bug

Parameters and buffers must be checked recursively during the load procedure module.cpp#L297.
For example, like this:
if (!child.value()->parameters().empty() || !child.value()->buffers().empty())

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions