MCPcopy Create free account
hub / github.com/BIT-MCS/DRL-eFresh / __init__

Method __init__

utils/base_utils.py:37–39  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

35
36class Util:
37 def __init__(self, device):
38 self.device = device
39 self.USE_CUDA = True if 'cuda' in device.type else False
40
41 def to_numpy(self, var, is_deep_copy=True):
42

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected