File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11License
22=======
33
4- Copyright (c) 2016~2018 The TensorLayer contributors. All rights reserved.
4+ Copyright (c) 2016~2020 The TensorLayer contributors. All rights reserved.
55
66 Apache License
77 Version 2.0, January 2004
@@ -208,4 +208,4 @@ Copyright (c) 2016~2018 The TensorLayer contributors. All rights reserved.
208208
209209Contact
210210=======
211- Questions? Please contact hao.dong11@imperial.ac.uk
211+ Questions? Please contact hao.dong@pku.edu.cn
Original file line number Diff line number Diff line change @@ -226,7 +226,6 @@ def __init__(
226226 self .moving_var_init = moving_var_init
227227 self .num_features = num_features
228228
229- self .channel_axis = - 1 if data_format == 'channels_last' else 1
230229 self .axes = None
231230
232231 if num_features is not None :
@@ -288,6 +287,7 @@ def build(self, inputs_shape):
288287 def forward (self , inputs ):
289288 self ._check_input_shape (inputs )
290289
290+ self .channel_axis = len (inputs .shape ) - 1 if self .data_format == 'channels_last' else 1
291291 if self .axes is None :
292292 self .axes = [i for i in range (len (inputs .shape )) if i != self .channel_axis ]
293293
You can’t perform that action at this time.
0 commit comments