summaryrefslogtreecommitdiff
path: root/python/src/_cdec.pyx
diff options
context:
space:
mode:
authorEva Schlinger <eschling@andrew.cmu.edu>2013-06-07 13:28:07 -0400
committerEva Schlinger <eschling@andrew.cmu.edu>2013-06-07 13:28:07 -0400
commitad2d6df5a5be1f6e0ea4e1e7387f996300744f53 (patch)
tree320c2f6dfa884aa06bae6f0a6abc92472fadaa49 /python/src/_cdec.pyx
parent7facc1f34bcf2fdd328d0ce39d21c5cf7f1896da (diff)
parent7ca523c492776485b1d5d030b4c1869a188a2e9b (diff)
Merge remote-tracking branch 'upstream/master'
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()