MCPcopy
hub / github.com/black0017/MedicalZooPytorch / device

Method device

lib/medzoo/BaseModelClass.py:35–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33
34 @property
35 def device(self):
36 return next(self.parameters()).device
37
38 def restore_checkpoint(self, ckpt_file, optimizer=None):
39 r"""

Callers 11

testMethod · 0.80
testMethod · 0.80
testMethod · 0.80
testMethod · 0.80
testMethod · 0.80
testMethod · 0.80
testMethod · 0.80
testMethod · 0.80
testMethod · 0.80
testMethod · 0.80
_prepare_deviceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected