Skip to content

Commit 7fbf864

Browse files
author
Atif Ahmed
committed
Avoiding duplicate downloads
1 parent f16273a commit 7fbf864

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

texar/torch/modules/classifiers/bert_classifier.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ def __init__(self,
7676
# Create the underlying encoder
7777
encoder_hparams = dict_fetch(hparams,
7878
self._ENCODER_CLASS.default_hparams())
79+
encoder_hparams['pretrained_model_name'] = None
7980

8081
self._encoder = self._ENCODER_CLASS(
81-
pretrained_model_name=pretrained_model_name,
82+
pretrained_model_name=None,
8283
cache_dir=cache_dir,
8384
hparams=encoder_hparams)
8485

0 commit comments

Comments
 (0)