code: def __init__(self, dtype=None, gpu=None, sparse=None, **kw):
      super().__init__(dtype=dtype, gpu=gpu, sparse=sparse, **kw)
      if not self.gpu:
          self.gpu = True
  
file_path: mars/mars/tensor/base/to_gpu.py
imports: from ...None import opcodes
  from ..array_utils import move_to_device
  from ..datasource import tensor
  from .core import TensorDeviceConversionBase
label_desc: Use image node_id 1 to create a new TensorToGPU object from inherited base classes: TensorDeviceConversionBase with example: obj = TensorToGPU(dtype, gpu, sparse)