Skip to content

Commit 92cf272

Browse files
authored
Update core.py
1 parent 54b1868 commit 92cf272

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tensorlayer/layers/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ def trainable_weights(self):
196196
def nontrainable_weights(self):
197197
return self._nontrainable_weights
198198

199+
@property
200+
def weights(self):
201+
raise Exception("no property .weights exists, do you mean .all_weights, .trainable_weights, or .nontrainable_weights ?")
202+
199203
def __call__(self, inputs, *args, **kwargs):
200204
"""
201205
(1) Build the Layer if necessary.

0 commit comments

Comments
 (0)