code: def cast_types(self, dtype, device):
      self.W.data = c_f.to_device(
          self.W.data, device=device, dtype=dtype
      )
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/losses/normalized_softmax_loss.py
imports: import torch
  from ..distances import DotProductSimilarity
  from ..utils import common_functions
  from ..utils import loss_and_miner_utils
  from .base_metric_loss_function import BaseMetricLossFunction
  from .mixins import WeightRegularizerMixin
label_desc: Use image node_id 2 for calling the NormalizedSoftmaxLoss obj's underlying member method code with example usage: obj.cast_types(dtype, device) without return types