Skip to content

insertion of complex data fails on MPS #28

@alisterburt

Description

@alisterburt
        # insert weighted data and weight values at each corner
        data = einops.rearrange(data, 'b c -> b c 1 1 1')
        w = einops.rearrange(w, 'b z y x -> b 1 z y x')
>       image.index_put_(
            indices=(idx_c, idx_z, idx_y, idx_x),
            values=data * w.to(data.dtype),
            accumulate=True
        )
E       RuntimeError: Expected scalar_type == ScalarType::Float || inputTensor.scalar_type() == ScalarType::Int || scalar_type == ScalarType::Bool to be true, but got false.  (Could this error message be improved?  If so, please report an enhancement request to PyTorch.)

/python3.13/site-packages/torch_image_interpolation/image_interpolation_3d.py:268: RuntimeError

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