Thank you,
unfortunately,  this is not inside the forward method. I compute the pairwise distance of the extracted feature. Since i have a reference to the model, Can I use .to(model.device)? or .to(model.my_param.device)?
Thanks.