parameters: (self, date)
docstring: :api_attr: Static Graph
  
          Set training date for pull sparse parameters, saving and loading model. Only used in psgpu
  
          Args:
              date(str): training date(format : YYMMDD). eg.20211111
  
          Examples:
              .. code-block:: python
  
                  import paddle
                  paddle.enable_static()
  
                  dataset = paddle.distributed.InMemoryDataset()
                  slots = ["slot1", "slot2", "slot3", "slot4"]
                  slots_vars = []
                  for slot in slots:
                      var = paddle.static.data(
                          name=slot, shape=[None, 1], dtype="int64", lod_level=1)
                      slots_vars.append(var)
                  dataset.init(
                      batch_size=1,
                      thread_num=2,
                      input_type=1,
                      pipe_command="cat",
                      use_var=slots_vars)
                  dataset.set_date("20211111")
docstring_summary: :api_attr: Static Graph
docstring_tokens: : api_attr : Static Graph
function: def set_date(self, date):
          """
          :api_attr: Static Graph
  
          Set training date for pull sparse parameters, saving and loading model. Only used in psgpu
  
          Args:
              date(str): training date(format : YYMMDD). eg.20211111
  
          Examples:
              .. code-block:: python
  
                  import paddle
                  paddle.enable_static()
  
                  dataset = paddle.distributed.InMemoryDataset()
                  slots = ["slot1", "slot2", "slot3", "slot4"]
                  slots_vars = []
                  for slot in slots:
                      var = paddle.static.data(
                          name=slot, shape=[None, 1], dtype="int64", lod_level=1)
                      slots_vars.append(var)
                  dataset.init(
                      batch_size=1,
                      thread_num=2,
                      input_type=1,
                      pipe_command="cat",
                      use_var=slots_vars)
                  dataset.set_date("20211111")
          """
          year = int(date[:4])
          month = int(date[4:6])
          day = int(date[6:])
          if self.use_ps_gpu and core._is_compiled_with_heterps():
              self.psgpu.set_date(year, month, day)
function_tokens: def set_date ( self , date ) : year = int ( date [ : 4 ] ) month = int ( date [ 4 : 6 ] ) day = int ( date [ 6 : ] ) if self . use_ps_gpu and core . _is_compiled_with_heterps ( ) : self . psgpu . set_date ( year , month , day )