From 25b686c9626d82ae968521798e8e86a781e02137 Mon Sep 17 00:00:00 2001 From: Michael Moussa Date: Thu, 25 Jan 2024 14:51:10 -0800 Subject: [PATCH] replace use of deprecated `logging.warn(` with `logging.warning(` Differential Revision: D52930395 fbshipit-source-id: 2fb4f8a9ddf6058f4dc0970b15581e8e896495a7 --- pearl/neural_networks/common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pearl/neural_networks/common/utils.py b/pearl/neural_networks/common/utils.py index e3fac133..80b05e87 100644 --- a/pearl/neural_networks/common/utils.py +++ b/pearl/neural_networks/common/utils.py @@ -75,7 +75,7 @@ def mlp_block( if input_dim_current_layer == output_dim_current_layer: single_layer_model = ResidualWrapper(single_layer_model) else: - logging.warn( + logging.warning( "Skip connections are enabled, " f"but layer in_dim ({input_dim_current_layer}) != out_dim " f"({output_dim_current_layer})." @@ -92,7 +92,7 @@ def mlp_block( if dims[-2] == dims[-1]: last_layer_model = ResidualWrapper(last_layer_model) else: - logging.warn( + logging.warning( "Skip connections are enabled, " f"but layer in_dim ({dims[-2]}) != out_dim ({dims[-1]}). " "Skip connection will not be added for this layer"