Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GAN] #12 Optimize the Use of Device: Create a Helper Function for Device Management #12

Open
veeradi34 opened this issue Oct 17, 2024 · 0 comments
Labels
enhancement New feature or request GAN

Comments

@veeradi34
Copy link
Contributor

Description: The code currently checks for the device and sends tensors to the device multiple times. This can be improved by creating a helper function.

Tasks:

Create a function to_device(tensor, device) that sends a tensor to the specified device.
Update the training loop and any other relevant sections to use this function.

@veeradi34 veeradi34 added enhancement New feature or request GAN labels Oct 18, 2024
@tushroy81 tushroy81 changed the title #12 Optimize the Use of Device: Create a Helper Function for Device Management [GAN] #12 Optimize the Use of Device: Create a Helper Function for Device Management Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request GAN
Projects
None yet
Development

No branches or pull requests

1 participant