mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
added option to change default tensor
This commit is contained in:
@@ -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