Skip to content

Make the Affine 32 Again #6961

@bill-yc-chen

Description

@bill-yc-chen

Is your feature request related to a problem? Please describe.
When read in the NiftiImage with LoadImage transform the affine matrix is saved in torch.float64, which causes problems when using MacBook's neural engine because mps accelerator doesn't support float64.

Describe the solution you'd like
Just make the affine matrix into float 32, thank you!

Describe alternatives you've considered
None

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions