From 123f94c49bf88d1325d99954cb8aa5cb457c6f4a Mon Sep 17 00:00:00 2001 From: Frank Seide Date: Fri, 26 Feb 2016 23:23:18 -0800 Subject: [PATCH] (refined an error message) --- Source/ComputationNetworkLib/ComputationNode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ComputationNetworkLib/ComputationNode.h b/Source/ComputationNetworkLib/ComputationNode.h index eeaf458f1..38671a209 100644 --- a/Source/ComputationNetworkLib/ComputationNode.h +++ b/Source/ComputationNetworkLib/ComputationNode.h @@ -404,9 +404,9 @@ private: void CheckTensorIsMatrix() const { if (HasMBLayout()) - LogicError("CheckTensorIsMatrix: Minibatch data cannot be interpreted as a single 2D tensor."); + LogicError("%ls %ls operation: Minibatch data cannot be interpreted as a single 2D tensor.", NodeName().c_str(), OperationName().c_str()); else if (m_sampleLayout.GetRank() < 1 || m_sampleLayout.GetRank() > 2) // note: scalars are not stored as tensors of rank 0, but rather as 1-dim vectors. TODO: clean this up some day - LogicError("CheckTensorIsMatrix: Sample is not a column vector or matrix (1D or 2D tensor)."); + LogicError("%ls %ls operation: Sample [%s] is not a column vector or matrix (1D or 2D tensor).", NodeName().c_str(), OperationName().c_str(), string(m_sampleLayout).c_str()); } public: size_t GetAsMatrixNumRows() const