class_docstr: A sampling graph in CSC format.
class_docstr_tok: ["A","sampling","graph","in","CSC","format","."]
docstr: Copy `FusedCSCSamplingGraph` to the specified device.
docstr_tok: ["Copy","`","FusedCSCSamplingGraph","`","to","the","specified","device","."]
code: def to(
      self, device: torch.device
  ) -> None:  # pylint: disable=invalid-name
      """Copy `FusedCSCSamplingGraph` to the specified device."""
  
      def _to(x):
          return x.to(device) if hasattr(x, "to") else x
  
      def _pin(x):
          return x.pin_memory() if hasattr(x, "pin_memory") else x
  
      # Create a copy of self.
      self2 = fused_csc_sampling_graph(
          self.csc_indptr,
          self.indices,
          self.node_type_offset,
          self.type_per_edge,
          self.node_type_to_id,
          self.edge_type_to_id,
          self.node_attributes,
          self.edge_attributes,
      )
      return self2._apply_to_members(
          _pin if device == "pinned" else _to
      )
  
imports: from typing import Dict, Optional, Union
  import torch
  from dgl.utils import recursive_apply
  from ...base import EID, ETYPE, NID, NTYPE
  from ...convert import to_homogeneous
  from ...heterograph import DGLGraph
  from ..base import etype_str_to_tuple, etype_tuple_to_str, ORIGINAL_EDGE_ID
  from ..sampling_graph import SamplingGraph
  from .sampled_subgraph_impl import CSCFormatBase, SampledSubgraphImpl
label_desc: Use image node_id 35 for calling the FusedCSCSamplingGraph obj's underlying member method code with example usage: obj.to(device) and returns: self2, unknown, unknown