MCPcopy Create free account
hub / github.com/Newmu/dcgan_code / sharedNs

Function sharedNs

lib/theano_utils.py:16–17  ·  view source on GitHub ↗
(shape, n, dtype=theano.config.floatX, name=None)

Source from the content-addressed store, hash-verified

14 return sharedX(np.zeros(shape), dtype=dtype, name=name)
15
16def sharedNs(shape, n, dtype=theano.config.floatX, name=None):
17 return sharedX(np.ones(shape)*n, dtype=dtype, name=name)

Callers

nothing calls this directly

Calls 1

sharedXFunction · 0.85

Tested by

no test coverage detected