mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
added option to change default tensor
This commit is contained in:
1 parent
4693276494
commit
fecd6a00cb
1 file changed
+2
@@ -81,6 +81,8 @@ class Trainer(TrainerIO):
|
||||
# apex test
|
||||
use_amp = True
|
||||
self.use_amp = use_amp and APEX_AVAILABLE
|
||||
if self.use_amp:
|
||||
print('using 16bit precision')
|
||||
|
||||
def __determine_data_use_amount(self, train_percent_check, val_percent_check, test_percent_check, overfit_pct):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user