Skip to content

UserWaring #1

@scy5335

Description

@scy5335

When I running the code, I will get the following warning. Should I fix it? Or it's normal?
lpm/zones_projection.py:35: UserWarning: An output with one or more elements was resized since it had shape [], which does not match the required output shape [572135]. This behavior is deprecated, and in a future PyTorch release outputs will not be resized unless they have zero elements. You can explicitly reuse an out tensor t by resizing it, inplace, to zero elements with t.resize_(0). (Triggered internally at ../aten/src/ATen/native/Resize.cpp:28.)
inside_zones3d_mask = torch.logical_or(inside_zones3d_mask, inside_single_region_mask)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions