summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-10-08 15:03:02 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-10-08 15:03:02 +0800
commit72cebebe44749bd11b6f8dd0f6a58a08f83238cf (patch)
treee8a9e788913edbecf0376a24b8010209b5cc13fd /src
parentdcfeb9219ce7c8c7044e61ed92efdec614233268 (diff)
downloadtnet-72cebebe44749bd11b6f8dd0f6a58a08f83238cf.tar.gz
tnet-72cebebe44749bd11b6f8dd0f6a58a08f83238cf.tar.bz2
tnet-72cebebe44749bd11b6f8dd0f6a58a08f83238cf.zip
disabled dim test
Diffstat (limited to 'src')
-rw-r--r--src/CuTNetLib/cuComponent.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/CuTNetLib/cuComponent.h b/src/CuTNetLib/cuComponent.h
index 71e51aa..1a038bb 100644
--- a/src/CuTNetLib/cuComponent.h
+++ b/src/CuTNetLib/cuComponent.h
@@ -154,10 +154,10 @@ namespace TNet {
//initialize output buffer
mOutput.Init(GetInput().Rows(),GetNOutputs());
//do the dimensionality test
- if(GetNInputs() != GetInput().Cols()) {
- KALDI_ERR << "Non-matching INPUT dim!!! Network dim: " << GetNInputs()
- << " Data dim: " << GetInput().Cols() << GetName();
- }
+ //if(GetNInputs() != GetInput().Cols()) {
+ // KALDI_ERR << "Non-matching INPUT dim!!! Network dim: " << GetNInputs()
+ // << " Data dim: " << GetInput().Cols() << GetName();
+ //}
//run transform
PropagateF(GetInput(),mOutput);
}
@@ -168,9 +168,9 @@ namespace TNet {
mErrorOutput.Init(GetErrorInput().Rows(),GetNInputs());
//do the dimensionality test
- assert(GetErrorInput().Cols() == mNOutputs);
- assert(mErrorOutput.Cols() == mNInputs);
- assert(mErrorOutput.Rows() == GetErrorInput().Rows());
+ //assert(GetErrorInput().Cols() == mNOutputs);
+ //assert(mErrorOutput.Cols() == mNInputs);
+ //assert(mErrorOutput.Rows() == GetErrorInput().Rows());
//transform
BackpropagateF(GetErrorInput(),mErrorOutput);