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
e0f98d92
Commit
e0f98d92
authored
May 31, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed code so that an error message is always printed if we run out of memory while
cross_validate_trainer_threaded() is executing.
parent
daf47c0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
svm_threaded.h
dlib/svm/svm_threaded.h
+6
-0
No files found.
dlib/svm/svm_threaded.h
View file @
e0f98d92
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include <vector>
#include <vector>
#include "../smart_pointers.h"
#include "../smart_pointers.h"
#include "../pipe.h"
#include "../pipe.h"
#include <iostream>
namespace
dlib
namespace
dlib
{
{
...
@@ -64,6 +65,11 @@ namespace dlib
...
@@ -64,6 +65,11 @@ namespace dlib
// invalid. In this case just return a cross validation score of 0.
// invalid. In this case just return a cross validation score of 0.
result
=
0
;
result
=
0
;
}
}
catch
(
std
::
bad_alloc
&
)
{
std
::
cerr
<<
"
\n
std::bad_alloc thrown while running cross_validate_trainer_threaded(). Not enough memory.
\n
"
<<
std
::
endl
;
throw
;
}
}
}
};
};
}
}
...
...
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