summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-10-06 19:51:38 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-10-06 19:51:38 +0800
commit50ec75e121f80a2506685520e7de1d6e486464ae (patch)
treec9b3031be94e1e8c939279a95ec2ae17aa2980a7
parentca0914ce975aa4a906cc91d88ea15ec4626bcc6c (diff)
downloadtnet-50ec75e121f80a2506685520e7de1d6e486464ae.tar.gz
tnet-50ec75e121f80a2506685520e7de1d6e486464ae.tar.bz2
tnet-50ec75e121f80a2506685520e7de1d6e486464ae.zip
Virtual 9
-rw-r--r--src/CuTNetLib/cuCompDisc.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/CuTNetLib/cuCompDisc.cc b/src/CuTNetLib/cuCompDisc.cc
index 2c0dbe3..48677e5 100644
--- a/src/CuTNetLib/cuCompDisc.cc
+++ b/src/CuTNetLib/cuCompDisc.cc
@@ -13,7 +13,6 @@ namespace TNet
CuDiscrete::
Propagate()
{
- printf("Propagate\n");
for (int i=0;i<inID.size(); i++)
mBlocks[inID[i].block]->SetInput(GetInput(i),inID[i].pos);
for (int i=0; i<mBlocks.size(); i++)
@@ -31,7 +30,6 @@ namespace TNet
CuDiscrete::
Backpropagate()
{
- printf("BackPropagate\n");
for (int i=0;i<outID.size(); i++)
mBlocks[outID[i].block]->SetErrorInput(GetOutput(i),outID[i].pos);
for(int i=0; i<mBlocks.size(); i++)
@@ -49,13 +47,14 @@ namespace TNet
CuDiscrete::
Update()
{
- printf("update\n");
+ printf("update+\n");
for(int i=0; i<mBlocks.size(); i++)
if ( mBlocks[i]->IsUpdatable() )
{
CuUpdatableComponent& rComp = dynamic_cast<CuUpdatableComponent&>(*mBlocks[i]);
rComp.Update();
}
+ printf("update-\n")
}