docstr: Tests that the hook works when the model and hook's device are different
docstr_tok: ["Tests","that","the","hook","works","when","the","model","and","hook","'s","device","are","different"]
code: def test_mixed_devices(self):
      """Tests that the hook works when the model and hook's device are different"""
      self._test_exponential_moving_average_hook("cpu", "gpu")
      self._test_exponential_moving_average_hook("gpu", "cpu")
  
imports: import copy
  import math
  import unittest
  import unittest.mock
  import torch
  import torch.nn
  from classy_vision.hooks import ExponentialMovingAverageModelHook
  from classy_vision.models import ClassyModel
  from test.generic.hook_test_utils import HookTestBase
label_desc: Use image node_id 6 for calling the TestExponentialMovingAverageModelHook obj's underlying member method code with example usage: obj.test_mixed_devices() without return types