class_docstr: 执行评测时使用的 backend，是所有 backend 的父类。Backend 及其子类的所有方法都必须是无状态的。
class_docstr_tok: ["\u6267\u884c\u8bc4\u6d4b\u65f6\u4f7f\u7528\u7684","backend\uff0c\u662f\u6240\u6709","backend","\u7684\u7236\u7c7b\u3002Backend","\u53ca\u5176\u5b50\u7c7b\u7684\u6240\u6709\u65b9\u6cd5\u90fd\u5fc5\u987b\u662f\u65e0\u72b6\u6001\u7684\u3002"]
docstr: 将张量移动到某个设备上。
  
  :param tensor: 传入的张量
  :param device: 设备号， 一般为 ``'cpu'``, ``'cuda:0'`` 等
docstr_tok: ["\u5c06\u5f20\u91cf\u79fb\u52a8\u5230\u67d0\u4e2a\u8bbe\u5907\u4e0a\u3002",":","param","tensor",":","\u4f20\u5165\u7684\u5f20\u91cf",":","param","device",":","\u8bbe\u5907\u53f7\uff0c","\u4e00\u822c\u4e3a","``","'cpu","'","``",",","``","'cuda:0","'","``","\u7b49"]
code: def move_tensor_to_device(self, tensor, device):
      """
      将张量移动到某个设备上。
  
      :param tensor: 传入的张量
      :param device: 设备号， 一般为 ``'cpu'``, ``'cuda:0'`` 等
      """
      return tensor
  
file_path: fastNLP/fastNLP/core/metrics/backend/backend.py
imports: from ..utils import AggregateMethodError
label_desc: Use image node_id 8 for calling the Backend obj's underlying member method code with example usage: obj.move_tensor_to_device(tensor, device) and returns: tensor