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
bf674153
Unverified
Commit
bf674153
authored
Jan 22, 2024
by
Matt
Committed by
GitHub
Jan 22, 2024
Browse files
Add missing key to TFLayoutLM signature (#28640)
Fix missing bbox in LayoutLM signature
parent
f0acf7b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/transformers/models/layoutlm/modeling_tf_layoutlm.py
src/transformers/models/layoutlm/modeling_tf_layoutlm.py
+6
-0
No files found.
src/transformers/models/layoutlm/modeling_tf_layoutlm.py
View file @
bf674153
...
@@ -944,6 +944,12 @@ class TFLayoutLMPreTrainedModel(TFPreTrainedModel):
...
@@ -944,6 +944,12 @@ class TFLayoutLMPreTrainedModel(TFPreTrainedModel):
config_class
=
LayoutLMConfig
config_class
=
LayoutLMConfig
base_model_prefix
=
"layoutlm"
base_model_prefix
=
"layoutlm"
@
property
def
input_signature
(
self
):
signature
=
super
().
input_signature
signature
[
"bbox"
]
=
tf
.
TensorSpec
(
shape
=
(
None
,
None
,
4
),
dtype
=
tf
.
int32
,
name
=
"bbox"
)
return
signature
LAYOUTLM_START_DOCSTRING
=
r
"""
LAYOUTLM_START_DOCSTRING
=
r
"""
...
...
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