parameters: (self, gradient_fp32_sync)
docstring: Set gradient_fp32_sync.
  
          Note:
              If gradient_fp32_sync is true,
              it will convert tensor type from fp16 to fp32 before parameter gradients allreduce.
  
          Args:
              gradient_fp32_sync (bool): The gradient_fp32_sync flag.
docstring_summary: Set gradient_fp32_sync.
docstring_tokens: Set gradient_fp32_sync .
function: def set_gradient_fp32_sync(self, gradient_fp32_sync):
          """
          Set gradient_fp32_sync.
  
          Note:
              If gradient_fp32_sync is true,
              it will convert tensor type from fp16 to fp32 before parameter gradients allreduce.
  
          Args:
              gradient_fp32_sync (bool): The gradient_fp32_sync flag.
          """
          self.check_context_handle()
          self._context_handle.set_gradient_fp32_sync(gradient_fp32_sync)
function_tokens: def set_gradient_fp32_sync ( self , gradient_fp32_sync ) : self . check_context_handle ( ) self . _context_handle . set_gradient_fp32_sync ( gradient_fp32_sync )