From 01ecc09f8e3a82c32bf7dd2f90c12554becea71d Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sat, 26 May 2012 20:59:00 -0400 Subject: fix incorrect interface use --- pro-train/mr_pro_reduce.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pro-train') diff --git a/pro-train/mr_pro_reduce.cc b/pro-train/mr_pro_reduce.cc index 9698bb5d..5ef9b470 100644 --- a/pro-train/mr_pro_reduce.cc +++ b/pro-train/mr_pro_reduce.cc @@ -186,8 +186,9 @@ double LearnParameters(const vector > >& train const unsigned memory_buffers, const vector& prev_x, vector* px) { + assert(px->size() == prev_x.size()); ProLoss loss(training, testing, C, T, prev_x); - LBFGS lbfgs(px, loss, C1, memory_buffers); + LBFGS lbfgs(px, loss, memory_buffers, C1); lbfgs.MinimizeFunction(); return loss.tppl; } -- cgit v1.2.3