Best Practice for Setting Precision In Dataset/DataModule #6844
Unanswered
fishbotics
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
What's considered best practice for making sure the data from the datamodule has the correct precision set? Right now, I get errors thrown because my data is loaded from hdf5 as double and I use
torch.as_tensor(...)
to cast it. When I setprecision=16
in myTrainer
, I get errors because the types don't match. I can manually cast everything in my dataset, but then I have to change it anytime I change the precision in my trainer.Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions