def METHOD_NAME(src, dst):
    nonlocal flag, has_xcel
    self.device_map[src.name] = src.device
    self.device_map[dst.name] = dst.device
    if src.device is None or dst.device is None:
        flag = False
    if src.device not in ["CPU", None] or dst.device not in ["CPU", None]:
        has_xcel = True