Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ambuj Mehrish
sidekit
Commits
fd4a35a8
Commit
fd4a35a8
authored
Mar 28, 2019
by
Anthony Larcher
Browse files
extract_idmap xvector on CPU
parent
24d726cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
nnet/xvector.py
View file @
fd4a35a8
...
...
@@ -642,7 +642,8 @@ def extract_idmap(args, device_ID, segment_indices, fs_params, idmap_name, outpu
Function that takes a model and an idmap and extract all x-vectors based on this model
and return a StatServer containing the x-vectors
"""
device
=
torch
.
device
(
"cuda:{}"
.
format
(
device_ID
))
#device = torch.device("cuda:{}".format(device_ID))
device
=
torch
.
device
(
'cpu'
)
# Create the dataset
tmp_idmap
=
IdMap
(
idmap_name
)
...
...
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