MCPcopy Create free account
hub / github.com/OUCMachineLearning/OUCML / var2numpy

Function var2numpy

GAN/self_attention _gan/utils.py:19–20  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

17 return x.data.cpu()
18
19def var2numpy(x):
20 return x.data.cpu().numpy()
21
22def denorm(x):
23 out = (x + 1) / 2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected