jacobian

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

commit 6af2565a6b3aab6d1a088ae4694170601f37c436
parent becc4d5a0e970e6465cb2310ff02ee421e939a0a
Author: David Freifeld <freifeld.david@gmail.com>
Date:   Mon,  6 Jul 2020 19:11:19 -0700

Struggles to resolve MR bug

Diffstat:
Mmapreduce.a | 0
Mmr_bpnn.cpp | 10+++++-----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/mapreduce.a b/mapreduce.a Binary files differ. 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); char* path = new char[100]; - printf("%p %p (from %p)\n", input_pair->key, input_pair->value, input_pair); - printf("%s %p (from %p)\n", (char*)input_pair->key, input_pair->value, input_pair); - 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();