fixed bad warn for result obj (#3072)
This commit is contained in:
parent
d51155c7ad
commit
da49b15e19
|
@ -314,7 +314,7 @@ class ModelCheckpoint(Callback):
|
||||||
|
|
||||||
def __warn_deprecated_monitor_key(self):
|
def __warn_deprecated_monitor_key(self):
|
||||||
using_result_obj = os.environ.get('PL_USING_RESULT_OBJ', None)
|
using_result_obj = os.environ.get('PL_USING_RESULT_OBJ', None)
|
||||||
invalid_key = self.monitor not in ['val_loss', 'checkpoint_on']
|
invalid_key = self.monitor not in ['val_loss', 'checkpoint_on', 'loss']
|
||||||
if using_result_obj and not self.warned_result_obj and invalid_key:
|
if using_result_obj and not self.warned_result_obj and invalid_key:
|
||||||
self.warned_result_obj = True
|
self.warned_result_obj = True
|
||||||
m = f"""
|
m = f"""
|
||||||
|
|
Loading…
Reference in New Issue