Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'dynet' has no attribute 'sum_cols'` #1171

Closed
chaoli1024 opened this issue Jan 5, 2018 · 1 comment
Closed

module 'dynet' has no attribute 'sum_cols'` #1171

chaoli1024 opened this issue Jan 5, 2018 · 1 comment

Comments

@chaoli1024
Copy link

`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'`

@neubig
Copy link
Contributor

neubig commented Jan 13, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants