summaryrefslogtreecommitdiff
path: root/src/CuTNetLib/cuNetwork.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CuTNetLib/cuNetwork.h')
-rw-r--r--src/CuTNetLib/cuNetwork.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CuTNetLib/cuNetwork.h b/src/CuTNetLib/cuNetwork.h
index fcf4893..86b5229 100644
--- a/src/CuTNetLib/cuNetwork.h
+++ b/src/CuTNetLib/cuNetwork.h
@@ -186,10 +186,12 @@ namespace TNet {
LayeredType::reverse_iterator it;
for(it=mNetComponents.rbegin(); it!=mNetComponents.rend(); ++it) {
//stopper component does not propagate error (no updatable predecessors)
+ std::cout<<"tick1"<<std::flush;
if(*it != mpPropagErrorStopper) {
//compute errors for preceding network components
(*it)->Backpropagate();
}
+ std::cout<<"tick2"<<std::flush;
//update weights if updatable component
if((*it)->IsUpdatable()) {
CuUpdatableComponent& rComp = dynamic_cast<CuUpdatableComponent&>(**it);
@@ -197,7 +199,7 @@ namespace TNet {
rComp.Update();
}
}
- std::cout<<"tick"<<std::flush;
+ std::cout<<"tick3"<<std::flush;
//stop backprop if no updatable components precede current component
if(mpPropagErrorStopper == *it) break;
}