Skip to content

Attribute error in utils type_conversion code in latest monai version 1.3.1 #7868

@xlar-sanjeet

Description

@xlar-sanjeet

Describe the bug
I am getting this attribute error while trying to transform data for swin unetr code.

Environment
** Latest monai version 1.3.1**

Error --

File ~/.conda/envs/monai/lib/python3.10/site-packages/monai/utils/type_conversion.py:369, in convert_to_dst_type(src, dst, dtype, wrap_sequence, device, safe)
368 output_type: Any
--> 369 if isinstance(dst, monai.data.MetaTensor):
370 output_type = monai.data.MetaTensor

AttributeError: module 'monai' has no attribute 'data'

monai_error

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