docstr: Saves model when validation loss decrease.
docstr_tok: ["Saves","model","when","validation","loss","decrease","."]
code: def save_checkpoint(self, model):
      """Saves model when validation loss decrease."""
      torch.save(model.state_dict(), self.save_model_path)
      print("Saved model to {}".format(self.save_model_path))
  
imports: import torch
label_desc: Use image node_id 3 for calling the EarlyStopping obj's underlying member method code with example usage: obj.save_checkpoint(model) without return types