parameters: (self, device=None, dtype=None, blocking=True)
docstring: Synchronously or asynchronously convert the data type of the layer, the device is not supported now.
docstring_summary: Synchronously or asynchronously convert the data type of the layer, the device is not supported now.
docstring_tokens: Synchronously or asynchronously convert the data type of the layer the device is not supported now .
function: def to(self, device=None, dtype=None, blocking=True):
          """
          Synchronously or asynchronously convert the data type of the layer, the device is not supported now.
          """
          assert isinstance(device, str), "Device must be type str"
          assert device == self._default_device, "New devices are not supported, because of the optimizer state is not sync"
  
          self._layer.to(device=device, dtype=dtype, blocking=blocking)
  
          # Re-build the buckets, hooks, etc..
          self._fresh_trainable()
function_tokens: def to ( self , device = None , dtype = None , blocking = True ) : assert isinstance ( device , str ) , "Device must be type str" assert device == self . _default_device , "New devices are not supported, because of the optimizer state is not sync" self . _layer . to ( device = device , dtype = dtype , blocking = blocking ) # Re-build the buckets, hooks, etc.. self . _fresh_trainable ( )