code: def test_smoothed_box_prior_to_gpu(self):
      if torch.cuda.is_available():
          prior = SmoothedBoxPrior(torch.zeros(2), torch.ones(2)).cuda()
          self.assertEqual(prior.a.device.type, "cuda")
          self.assertEqual(prior.b.device.type, "cuda")
          self.assertEqual(prior.sigma.device.type, "cuda")
          self.assertEqual(prior._c.device.type, "cuda")
          self.assertEqual(prior._r.device.type, "cuda")
          self.assertEqual(prior._M.device.type, "cuda")
          self.assertEqual(prior.tails.loc.device.type, "cuda")
          self.assertEqual(prior.tails.scale.device.type, "cuda")
  
file_path: gpytorch/test/priors/test_smoothed_box_prior.py
imports: import math
  import unittest
  import torch
  from gpytorch.priors import SmoothedBoxPrior
  from gpytorch.test.utils import approx_equal, least_used_cuda_device
label_desc: Use image node_id 1 for calling the TestSmoothedBoxPrior obj's underlying member method code with example usage: obj.test_smoothed_box_prior_to_gpu() without return types