Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
84e0f0e9
Commit
84e0f0e9
authored
May 20, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a function to determine how many threads a structural_svm_problem_threaded
object is going to use.
parent
39c9a234
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
structural_svm_problem_threaded.h
dlib/svm/structural_svm_problem_threaded.h
+3
-0
structural_svm_problem_threaded_abstract.h
dlib/svm/structural_svm_problem_threaded_abstract.h
+9
-2
No files found.
dlib/svm/structural_svm_problem_threaded.h
View file @
84e0f0e9
...
...
@@ -34,6 +34,9 @@ namespace dlib
tp
(
num_threads
)
{}
unsigned
long
get_num_threads
(
)
const
{
return
tp
.
num_threads_in_pool
();
}
private
:
struct
binder
...
...
dlib/svm/structural_svm_problem_threaded_abstract.h
View file @
84e0f0e9
...
...
@@ -40,8 +40,15 @@ namespace dlib
/*!
ensures
- this object is properly initialized
- This object will use num_threads threads at a time to call the
separation_oracle() function.
- #get_num_threads() == num_threads
!*/
unsigned
long
get_num_threads
(
)
const
;
/*!
ensures
- Returns the number of threads which will be used to make concurrent
calls to the separation_oracle() function.
!*/
};
...
...
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