Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
0a03a868
Unverified
Commit
0a03a868
authored
Jan 10, 2022
by
Yih-Dar
Committed by
GitHub
Jan 10, 2022
Browse files
fix model table cell text alignment (#14999)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
d72343d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
docs/source/index.mdx
docs/source/index.mdx
+1
-1
utils/check_table.py
utils/check_table.py
+2
-1
No files found.
docs/source/index.mdx
View file @
0a03a868
...
...
@@ -190,7 +190,7 @@ Flax), PyTorch, and/or TensorFlow.
<!--This table is updated automatically from the auto modules with _make fix-copies_. Do not update manually!-->
| Model | Tokenizer slow | Tokenizer fast | PyTorch support | TensorFlow support | Flax Support |
|
--
---------------------------
|--
--------------
|-
--------------
-|--
---------------
|--
------------------
|
------------
--
|
|
:
---------------------------
:|:
--------------
:|:
--------------
:|:
---------------
:|:
------------------
:|:
------------
:
|
| ALBERT | ✅ | ✅ | ✅ | ✅ | ✅ |
| BART | ✅ | ✅ | ✅ | ✅ | ✅ |
| BEiT | ❌ | ❌ | ✅ | ❌ | ✅ |
...
...
utils/check_table.py
View file @
0a03a868
...
...
@@ -140,7 +140,8 @@ def get_model_table_from_auto_modules():
# Build the table per se
table
=
"|"
+
"|"
.
join
([
_center_text
(
c
,
w
)
for
c
,
w
in
zip
(
columns
,
widths
)])
+
"|
\n
"
table
+=
"|"
+
"|"
.
join
([
"-"
*
w
for
w
in
widths
])
+
"|
\n
"
# Use ":-----:" format to center-aligned table cell texts
table
+=
"|"
+
"|"
.
join
([
":"
+
"-"
*
(
w
-
2
)
+
":"
for
w
in
widths
])
+
"|
\n
"
check
=
{
True
:
"✅"
,
False
:
"❌"
}
for
name
in
model_names
:
...
...
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