Definition at line 4 of file googlenet_custom_layers.py.
def googlenet_custom_layers.LRN.__init__ |
( |
|
self, |
|
|
|
alpha = 0.0001 , |
|
|
|
k = 1 , |
|
|
|
beta = 0.75 , |
|
|
|
n = 5 , |
|
|
|
kwargs |
|
) |
| |
Definition at line 6 of file googlenet_custom_layers.py.
6 def __init__(self, alpha=0.0001,k=1,beta=0.75,n=5, **kwargs):
def __init__(self, alpha=0.0001, k=1, beta=0.75, n=5, kwargs)
def googlenet_custom_layers.LRN.call |
( |
|
self, |
|
|
|
x, |
|
|
|
mask = None |
|
) |
| |
Definition at line 13 of file googlenet_custom_layers.py.
13 def call(self, x, mask=None):
17 extra_channels = T.alloc(0., b, ch + 2*half_n, r, c)
18 input_sqr = T.set_subtensor(extra_channels[:, half_n:half_n+ch, :, :],input_sqr)
20 norm_alpha = self.
alpha / self.
n 21 for i
in range(self.
n):
22 scale += norm_alpha * input_sqr[:, i:i+ch, :, :]
23 scale = scale ** self.
beta
def call(self, x, mask=None)
def googlenet_custom_layers.LRN.get_config |
( |
|
self | ) |
|
googlenet_custom_layers.LRN.alpha |
googlenet_custom_layers.LRN.beta |
googlenet_custom_layers.LRN.k |
googlenet_custom_layers.LRN.n |
The documentation for this class was generated from the following file: