Skip to content

Commit

Permalink
Backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharath Ramsundar authored and Bharath Ramsundar committed Jun 25, 2020
1 parent 0a51ace commit c5bfa75
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion deepchem/models/keras_model.py
Expand Up @@ -151,7 +151,14 @@ def __init__(self,
else:
self.optimizer = optimizer
self.tensorboard = tensorboard
self.log_frequency = log_frequency
# Backwards compatibility
if "tensorboard_log_frequency" in kwargs:
logger.warn(
"tensorboard_log_frequency is deprecated. Please use log_frequency instead. This argument will be removed in a future release of DeepChem."
)
self.log_frequency = kwargs["tensorboard_log_frequency"]
else:
self.log_frequency = log_frequency
if self.tensorboard:
self._summary_writer = tf.summary.create_file_writer(self.model_dir)
if output_types is None:
Expand Down

0 comments on commit c5bfa75

Please sign in to comment.