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
7bb42712
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "9c9db751e29432e8924624ef44856cd9fa671ef3"
Commit
7bb42712
authored
Dec 23, 2019
by
patrickvonplaten
Browse files
remove ipdb debugging statements
parent
267587c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+0
-2
No files found.
src/transformers/modeling_utils.py
View file @
7bb42712
...
...
@@ -18,7 +18,6 @@
import
logging
import
os
import
ipdb
import
torch
from
torch
import
nn
...
...
@@ -794,7 +793,6 @@ class PreTrainedModel(nn.Module):
):
""" Generate sequences for each example with beam search.
"""
ipdb
.
set_trace
()
# Expand input to num beams
input_ids
=
input_ids
.
unsqueeze
(
1
).
expand
(
batch_size
,
num_beams
,
cur_len
)
input_ids
=
input_ids
.
contiguous
().
view
(
batch_size
*
num_beams
,
cur_len
)
# (batch_size * num_beams, cur_len)
...
...
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