jacobian

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 84e0ba860f6e74eaf47b9f34317c202b04108d64
parent 6af2565a6b3aab6d1a088ae4694170601f37c436
Author: David Freifeld <freifeld.david@gmail.com>
Date:   Tue,  7 Jul 2020 16:57:13 -0700

Further attempts to locate bug

Diffstat:
Mmr_bpnn.cpp | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mr_bpnn.cpp b/mr_bpnn.cpp @@ -4,7 +4,7 @@ class NetworkArray { public: - std::function<struct pair*(struct pair)> map; + std::function<struct pair*(struct pair*)> map; std::function<struct pair*(struct pair*)> reduce; std::function<void(char*)> translate; @@ -14,12 +14,12 @@ public: NetworkArray::NetworkArray(char* configuration, std::function<Network*(void)> setup, int epochs) { - map = [setup, epochs](struct pair input_pair) -> struct pair* + map = [setup, epochs](struct pair* input_pair) -> struct pair* { - printf("%p %p\n", input_pair.key, input_pair.value); - printf("%s %p\n", (char*)input_pair.key, input_pair.value); + printf("Recieved %p %p in form of %p\n", input_pair->key, input_pair->value, input_pair); + printf("%s %p\n", (char*)input_pair->key, input_pair->value); char* path = new char[100]; - strcpy(path, (char*)input_pair.key); + strcpy(path, (char*)input_pair->key); //strcat(path, "_shuf"); //int linecount = prep_file((char*)input_pair.key, path); // Network* net = setup();