parameters: (self,
                            executor,
                            dirname,
                            main_program=None,
                            filename=None)
docstring: This function filters out all variables with `persistable==True` from
          the give `main_program` and then saves these variables to the folder
          `dirname` or file `filename`.
  
          The `dirname` is used to specify the folder where persistable variables
          are going to be saved. If you would like to save variables in separate
          files, set `filename` None; if you would like to save all variables in a
          single file, use `filename` to specify the file name.
docstring_summary: This function filters out all variables with `persistable==True` from
          the give `main_program` and then saves these variables to the folder
          `dirname` or file `filename`.
docstring_tokens: This function filters out all variables with persistable == True from the give main_program and then saves these variables to the folder dirname or file filename .
function: def save_persistables(self,
                            executor,
                            dirname,
                            main_program=None,
                            filename=None):
          """
          This function filters out all variables with `persistable==True` from
          the give `main_program` and then saves these variables to the folder
          `dirname` or file `filename`.
  
          The `dirname` is used to specify the folder where persistable variables
          are going to be saved. If you would like to save variables in separate
          files, set `filename` None; if you would like to save all variables in a
          single file, use `filename` to specify the file name.
          """
          assert isinstance(executor, Executor), \
              "In fleet.save_inference_model() function, executor must be as" \
              " Executor type."
  
          if main_program is None:
              main_program = self._origin_program
  
          assert isinstance(main_program, Program), \
              "In fleet.save_inference_model() function, main_program " \
              "must be as Program type."
  
          io.save_persistables(executor, dirname, main_program, filename=filename)
function_tokens: def save_persistables ( self , executor , dirname , main_program = None , filename = None ) : assert isinstance ( executor , Executor ) , "In fleet.save_inference_model() function, executor must be as" " Executor type." if main_program is None : main_program = self . _origin_program assert isinstance ( main_program , Program ) , "In fleet.save_inference_model() function, main_program " "must be as Program type." io . save_persistables ( executor , dirname , main_program , filename = filename )