MCPcopy 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

48ntrain, nval, ntest = len(trX), len(vaX), len(teX)
49
50def transform(X):
51 return (floatX(X)/255.).reshape(-1, nc, npx, npx)
52
53def inverse_transform(X):
54 X = X.reshape(-1, npx, npx)

Callers 1

Calls 1

floatXFunction · 0.90

Tested by

no test coverage detected