Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Newmu/dcgan_code
/ transform
Function
transform
mnist/train_cond_dcgan.py:50–51 ·
view source on GitHub ↗
(X)
Source
from the content-addressed store, hash-verified
48
ntrain, nval, ntest = len(trX), len(vaX), len(teX)
49
50
def
transform(X):
51
return
(floatX(X)/255.).reshape(-1, nc, npx, npx)
52
53
def
inverse_transform(X):
54
X = X.reshape(-1, npx, npx)
Callers
1
train_cond_dcgan.py
File · 0.70
Calls
1
floatX
Function · 0.90
Tested by
no test coverage detected