summaryrefslogtreecommitdiff
path: root/python/src/_cdec.pyx
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-06-06 16:23:40 -0400
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-06-06 16:23:40 -0400
commit660eabae8886d3e09177749daaf4d4ac29178b0b (patch)
treebfbff96a7498247b1cc3a25bef597589318fa8fa /python/src/_cdec.pyx
parent1b946f3bd1ecbd86b0f849389e89ac439d8450df (diff)
parent5871cbe8d3100f17dbe9642bbd7b417b60ca38f0 (diff)
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'python/src/_cdec.pyx')
-rw-r--r--python/src/_cdec.pyx1
1 files changed, 0 insertions, 1 deletions
diff --git a/python/src/_cdec.pyx b/python/src/_cdec.pyx
index 71e083e4..47d0c739 100644
--- a/python/src/_cdec.pyx
+++ b/python/src/_cdec.pyx
@@ -72,7 +72,6 @@ cdef class Decoder:
if isinstance(weights, DenseVector):
self.weights.vector[0] = (<DenseVector> weights).vector[0]
elif isinstance(weights, SparseVector):
- self.weights.vector.clear()
((<SparseVector> weights).vector[0]).init_vector(self.weights.vector)
elif isinstance(weights, dict):
self.weights.vector.clear()