Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/SPADE
/ use_gpu
Method
use_gpu
models/pix2pix_model.py:250–251 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
248
return
eps.mul(std) + mu
249
250
def
use_gpu(self):
251
return
len(self.opt.gpu_ids) > 0
Callers
2
__init__
Method · 0.95
preprocess_input
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected