parameters: ()
return_statement: return mx.callback.do_checkpoint("checkpoint/checkpoint", args.save_period)
docstring: Save cnn model
      Returns
      ----------
      callback: A callback function that can be passed as epoch_end_callback to fit
docstring_summary: Save cnn model
      Returns
      ----------
      callback: A callback function that can be passed as epoch_end_callback to fit
docstring_tokens: Save cnn model Returns ---------- callback : A callback function that can be passed as epoch_end_callback to fit
function: def save_model():
      """Save cnn model
      Returns
      ----------
      callback: A callback function that can be passed as epoch_end_callback to fit
      """
      if not os.path.exists("checkpoint"):
          os.mkdir("checkpoint")
      return mx.callback.do_checkpoint("checkpoint/checkpoint", args.save_period)
function_tokens: def save_model ( ) : if not os . path . exists ( "checkpoint" ) : os . mkdir ( "checkpoint" ) return mx . callback . do_checkpoint ( "checkpoint/checkpoint" , args . save_period )