Skip to content

Commit ac91cf2

Browse files
seanpmorganWindQAQ
authored andcommitted
Update logging to warning since warn is deprecated (#828)
1 parent b026fd6 commit ac91cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_addons/layers/wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(self, layer, data_init=True, **kwargs):
6464
self.is_rnn = isinstance(self.layer, tf.keras.layers.RNN)
6565

6666
if self.data_init and self.is_rnn:
67-
logging.warn(
67+
logging.warning(
6868
"WeightNormalization: Using `data_init=True` with RNNs "
6969
"is advised against by the paper. Use `data_init=False`.")
7070

0 commit comments

Comments
 (0)