mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Reduce FOREVER from 290 to 200 years (#2938)
Prevents wrap observed in emcc, causing find_max_global to exit immediately unless a custom (and non-wrapping) max_runtime is provided.
This commit is contained in:
parent
4d6b41c7a5
commit
1db5a38539
@ -114,7 +114,7 @@ template <typename T> static auto go(T&& f, const matrix<double, 0, 1>& a) -> de
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
const auto FOREVER = std::chrono::hours(24*365*290); // 290 years
|
const auto FOREVER = std::chrono::hours(24*365*200); // 200 years
|
||||||
using stop_condition = std::function<bool(double)>;
|
using stop_condition = std::function<bool(double)>;
|
||||||
const stop_condition never_stop_early = [](double) { return false; };
|
const stop_condition never_stop_early = [](double) { return false; };
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ namespace dlib
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
const auto FOREVER = std::chrono::hours(24*356*290); // 290 years, basically forever
|
const auto FOREVER = std::chrono::hours(24*356*200); // 200 years, basically forever
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
WHAT THIS OBJECT REPRESENTS
|
WHAT THIS OBJECT REPRESENTS
|
||||||
|
Loading…
Reference in New Issue
Block a user