code: def _to(cls, arg0, device):
      if isinstance(device, str):
          device = torch.device(device)
      assert isinstance(device, torch.device)
      return cls(
          arg0.__values.to(device=device),
          arg0.__layout,
      )
  
imports: import logging
  import torch
  from xformers import _is_triton_available
  from xformers.ops import masked_matmul
label_desc: Use image node_id 11 for calling the BlockSparseTensor obj's underlying member method code with example usage: obj._to(cls, arg0, device) and returns: cls