docstr: 将 tensor 的值设置为 value
  
  :param tensor: 传入的张量
  :param value: 需要 fill 的值。
docstr_tok: ["\u5c06","tensor","\u7684\u503c\u8bbe\u7f6e\u4e3a","value",":","param","tensor",":","\u4f20\u5165\u7684\u5f20\u91cf",":","param","value",":","\u9700\u8981","fill","\u7684\u503c\u3002"]
code: def fill_value(self, tensor, value: float):
      """
      将 tensor 的值设置为 value
  
      :param tensor: 传入的张量
      :param value: 需要 fill 的值。
      """
      tensor.fill_(value)
      return tensor
  
file_path: fastNLP/fastNLP/core/metrics/backend/torch_backend/backend.py
imports: from typing import Any, List, Optional
  import numpy
  from fastNLP.core.metrics.backend import Backend
  from fastNLP.core.metrics.utils import AggregateMethodError
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH
  from fastNLP.core.drivers.torch_driver.dist_utils import fastnlp_torch_all_gather
label_desc: Use image node_id 4 for calling the TorchBackend obj's underlying member method code with example usage: obj.fill_value(tensor, value) and returns: tensor