Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoRefoyo committed Jan 14, 2021
2 parents 2944c23 + 972d265 commit f93a740
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions opennn/opennn_strings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ void fill_tokens(const string& str, const char& separator, Tensor<string, 1>& to
// Find first "non-delimiter"

Index index = 0;

Index old_pos;


while(string::npos != position || string::npos != last_position)
{
// Found a token, add it to the vector
Expand Down
5 changes: 4 additions & 1 deletion tests/correlations_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,10 @@ void CorrelationsTest::test_exponential_correlation()
{
y[i] = exp(static_cast<type>(2.5)*x[i] + static_cast<type>(1.4));
}
const ThreadPoolDevice* thread_pool_device = thread_pool_device;

const int n = omp_get_max_threads();
NonBlockingThreadPool* non_blocking_thread_pool = new NonBlockingThreadPool(n);
ThreadPoolDevice* thread_pool_device = new ThreadPoolDevice(non_blocking_thread_pool, n);

type correlation = exponential_correlation(thread_pool_device,x,y);
//@todo(assert_true(correlation > static_cast<type>(0.999999), LOG);)
Expand Down

0 comments on commit f93a740

Please sign in to comment.