code: def _bf16_to_float32(x: torch.Tensor) -> torch.Tensor:
      # bfloat16 is not supported in .numpy(): torch/csrc/utils/tensor_numpy.cpp:aten_to_numpy_dtype
      return x.float() if x.dtype == torch.bfloat16 else x
  
file_path: doctr/doctr/models/utils/pytorch.py
imports: import logging
  from typing import Any, List, Optional, Tuple, Union
  import torch
  from torch import nn
  from doctr.utils.data import download_from_url
label_desc: Use image node_id 2 for calling a global function with example usage: _bf16_to_float32(x) and returns: unknown