original_docstring: 
          Loads a model only loads it if the directory exists
          :param session: Tensorflow session
          :param saver: The object that saves and loads the model
          :param path:
          :return:
          
docstring: Loads a model only loads it if the directory exists
docstring_tokens: Loads a model only loads it if the directory exists
code: def _load_model(self, session, saver, path):
          """
          Loads a model only loads it if the directory exists
          :param session: Tensorflow session
          :param saver: The object that saves and loads the model
          :param path:
          :return:
          """
          if os.path.exists(os.path.dirname(path)):
              checkpoint_path = path
              if self.load_from_checkpoints:
                  checkpoint_path = tf.train.load_checkpoint(os.path.dirname(path))
              saver.restore(session, checkpoint_path)
          else:
              print('model for saver not found:', path)
code_tokens: def _load_model ( self , session , saver , path ) : if os . path . exists ( os . path . dirname ( path ) ) : checkpoint_path = path if self . load_from_checkpoints : checkpoint_path = tf . train . load_checkpoint ( os . path . dirname ( path ) ) saver . restore ( session , checkpoint_path ) else : print ( 'model for saver not found:' , path )
short_docstring: Loads a model only loads it if the directory exists
short_docstring_tokens: Loads a model only loads it if the directory exists
comment: """
          Loads a model only loads it if the directory exists
          :param session: Tensorflow session
          :param saver: The object that saves and loads the model
          :param path:
          :return:
          """