MCPcopy Create free account
hub / github.com/modelscope/modelscope / test_device_placement_cpu

Method test_device_placement_cpu

tests/utils/test_device.py:83–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 self.assertTrue(device.index == target_device_index)
82
83 def test_device_placement_cpu(self):
84 with device_placement(Frameworks.torch, 'cpu'):
85 pass
86
87 @unittest.skip('skip this test to avoid debug logging.')
88 def test_device_placement_tf_gpu(self):

Callers

nothing calls this directly

Calls 1

device_placementFunction · 0.90

Tested by

no test coverage detected