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

Method __call__

lib/activations.py:9–11  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

7 pass
8
9 def __call__(self, x):
10 e_x = T.exp(x - x.max(axis=1).dimshuffle(0, 'x'))
11 return e_x / e_x.sum(axis=1).dimshuffle(0, 'x')
12
13class ConvSoftmax(object):
14

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected