Skip to content

Conversation

@karthik-ravi-1537
Copy link

This PR addresses an issue with the autoamp_init_wrapper function that patches PyTorch's torch.autocast.init method.

Changes:

  • Changed the function call to the torch.autocast.init (or other functions that are patched) to have the expected function signature.
  • Replaced deprecated torch.get_autocast_cpu_dtype() with the recommended torch.get_autocast_dtype('cpu')
  • Added tests for the autoamp_init_wrapper function in tests/test_autocast_patch.py.

@karthik-ravi-1537
Copy link
Author

karthik-ravi-1537 commented Jun 16, 2025

Relates to Issue #434

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant