Skip to content

Commit 665313b

Browse files
zsdonghaowagamamaz
authored andcommitted
Fix file.rst typo (#906)
* update sampling layers * upadte zoom * fix bug zoom * typo * fix bug affine_transform_cv2 x and y * fix bug crop when crop size equal to image size * fix file docs typo * fix bug instance norm * fix docs
1 parent 09eda2f commit 665313b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/modules/files.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ Load benchmark dataset, save and restore model, save and load variables.
3434
save_ckpt
3535
load_ckpt
3636

37-
..
38-
save_graph
39-
load_graph
40-
save_graph_and_params
41-
load_graph_and_params
42-
4337
save_any_to_npy
4438
load_npy_to_any
4539

@@ -55,6 +49,12 @@ Load benchmark dataset, save and restore model, save and load variables.
5549

5650
natural_keys
5751

52+
..
53+
save_graph
54+
load_graph
55+
save_graph_and_params
56+
load_graph_and_params
57+
5858
npz_to_W_pdf
5959

6060

tensorlayer/layers/normalization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,10 @@ def __init__(
308308
self.outputs = scale * tf.div(self.inputs - mean, tf.sqrt(var + epsilon)) + offset
309309
self.outputs = self._apply_activation(self.outputs)
310310

311-
variables = tf.get_collection(TF_GRAPHKEYS_VARIABLES, scope=vs.name)
311+
# variables = tf.get_collection(TF_GRAPHKEYS_VARIABLES, scope=vs.name)
312312

313313
self._add_layers(self.outputs)
314-
self._add_params(variables)
314+
self._add_params([scale, offset])
315315

316316

317317
class LayerNormLayer(Layer):

0 commit comments

Comments
 (0)