Deprecate LoggerStages Enum
🚀 Feature
See title

  
    
      pytorch-lightning/pytorch_lightning/trainer/connectors/logger_connector/epoch_result_store.py
    
    
        Lines 25 to 42
      in
      9137b16
    
  
  
    

        
          
           class LoggerStages(str, Enum): 
        

        
          
               """ Train/validation/test phase in each training step. 
        

        
          
               >>> # you can math the type with string 
        

        
          
               >>> LoggerStages.TRAIN == 'train' 
        

        
          
               True 
        

        
          
               """ 
        

        
          
               TRAIN = "train" 
        

        
          
               VAL = "validation" 
        

        
          
               TEST = "test" 
        

        
          
            
        

        
          
               @staticmethod 
        

        
          
               def determine_stage(stage_or_testing: Union[str, bool]) -> 'LoggerStages': 
        

        
          
                   if isinstance(stage_or_testing, str) and stage_or_testing in list(LoggerStages): 
        

        
          
                       return LoggerStages(stage_or_testing) 
        

        
          
                   if isinstance(stage_or_testing, (bool, int)): 
        

        
          
                       # stage_or_testing is trainer.testing 
        

        
          
                       return LoggerStages.TEST if bool(stage_or_testing) else LoggerStages.VAL 
        

        
          
                   raise RuntimeError(f"Invalid stage {stage_or_testing} of type {type(stage_or_testing)} given") 
        
    
  


Motivation
No longer used after #5579
Pitch
Proper deprecation process