Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
aa438a42
Unverified
Commit
aa438a42
authored
Feb 02, 2021
by
Stefan Schweter
Committed by
GitHub
Feb 02, 2021
Browse files
convbert: minor fixes for conversion script (#9937)
parent
62024453
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/transformers/models/convbert/convert_convbert_original_tf1_checkpoint_to_pytorch.py
...rt/convert_convbert_original_tf1_checkpoint_to_pytorch.py
+3
-3
No files found.
src/transformers/models/convbert/convert_convbert_original_tf1_checkpoint_to_pytorch.py
View file @
aa438a42
...
...
@@ -16,8 +16,8 @@
import
argparse
from
...utils
import
logging
from
.modeling_convbert
import
ConvBertConfig
,
ConvBertModel
,
load_tf_weights_in_convbert
from
transformers
import
ConvBertConfig
,
ConvBertModel
,
load_tf_weights_in_convbert
from
transformers.utils
import
logging
logging
.
set_verbosity_info
()
...
...
@@ -49,4 +49,4 @@ if __name__ == "__main__":
"--pytorch_dump_path"
,
default
=
None
,
type
=
str
,
required
=
True
,
help
=
"Path to the output PyTorch model."
)
args
=
parser
.
parse_args
()
convert_orig_tf1_checkpoint_to_pytorch
(
args
.
tf_checkpoint_path
,
args
.
conv
_
bert_config_file
,
args
.
pytorch_dump_path
)
convert_orig_tf1_checkpoint_to_pytorch
(
args
.
tf_checkpoint_path
,
args
.
convbert_config_file
,
args
.
pytorch_dump_path
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment