Skip to content
Discussion options

You must be logged in to vote

Dear @Haydnspass,

You have several ways to do this:

  1. Create a custom Data / Batch Object and implement the .to function to move only what is required.

  2. Simpler: Override LightningModule.transfer_batch_to_device hook and add your own logic to move only x, y to the right device.

Best,
T.C

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Haydnspass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment