Saturday, March 6, 2010

New Problem

Having a new problem with my training algorithm where the loop that's supposed to loop through all of the training patterns isn't doing so for some reason. It's a really strange one. I'm using the visual debugger in Visual Studio and for some reason the index of the for loop is always at the last index and I've verified this with printf statements inside the loop. In my test case the loop should execute the code inside 7 times and it's only being executed once.

I'm pretty sure its visual studio doing something at compile time, possibly some kind of auto optimization because of the number of loops in the function or something, but that's just a wild guess. Going to investigate further tomorrow. It's annoying as hell though.

No comments:

Post a Comment