clab/dynet

module 'dynet' has no attribute 'sum_cols'`

Closed this issue · 1 comments

`Traceback (most recent call last):

File "model.py", line 528, in
loss_expr = model.neg_log_loss(instance.sentence, instance.tags)

File "model.py", line 192, in neg_log_loss
forward_score = self.forward(observations)

File "model.py", line 212, in forward
alphas_t.append(log_sum_exp(next_tag_expr))

File "model.py", line 202, in log_sum_exp
return max_score_expr + dy.log(dy.sum_cols(dy.transpose(dy.exp(scores - max_score_expr_broadcast))))

AttributeError: module 'dynet' has no attribute 'sum_cols'`

sum_cols(x) has been deprecated.
Please use sum_dim(x, [1]) instead.