Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

A upgrade to PytorchLightning 2.0 and PyTorch 2.0 #308

@YuyangXueEd

Description

@YuyangXueEd

Hello all!

Since PyTorch and PytorchLightning is upgraded to 2.0 and above, the fastmri_examples code such as unet is now deprecated. I am wondering that whether there is a plan to update the code to compatible to 2.0.

There are some changes like:

  • used LightningDataModule.parse_argparser(), LightningDataModule.from_argparse_args() and Trainer.from_argparse_args() method now switch to using LightningCLI.
  • had any logic except reducing the DP outputs in LightningModule.validation_step_end hook now port it to LightningModule.on_validation_batch_end hook
  • had any logic except reducing the DP outputs in LightningModule.test_step_end hook now port it to LightningModule.on_test_batch_end hook
  • no resume_from_checkpoint for the Trainer but changed to ckpt_path
  • ...

I will try to pull a request when ready.

Please:

  • [*] Check for duplicate requests.
  • [*] Describe your goal, and if possible provide a code snippet with a motivating example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions