Skip to content

Commit

Permalink
Avoiding duplicate downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Atif Ahmed committed Dec 23, 2019
1 parent f16273a commit 7fbf864
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion texar/torch/modules/classifiers/bert_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ def __init__(self,
# Create the underlying encoder
encoder_hparams = dict_fetch(hparams,
self._ENCODER_CLASS.default_hparams())
encoder_hparams['pretrained_model_name'] = None

self._encoder = self._ENCODER_CLASS(
pretrained_model_name=pretrained_model_name,
pretrained_model_name=None,
cache_dir=cache_dir,
hparams=encoder_hparams)

Expand Down

0 comments on commit 7fbf864

Please sign in to comment.