Skip to content

Add pytorch demo script#6

Open
wanzysky wants to merge 1 commit intoaamini:mainfrom
wanzysky:main
Open

Add pytorch demo script#6
wanzysky wants to merge 1 commit intoaamini:mainfrom
wanzysky:main

Conversation

@wanzysky
Copy link
Copy Markdown

500 iters:

image

1500 iters:

image

@oiao
Copy link
Copy Markdown

oiao commented Dec 29, 2022

Thanks a lot for the implementation. I have noticed a strange behavior of Pytorch:
When concatenating the return value of LinearNormalGamma at

return mu, self.evidence(logv), self.evidence(logalpha) + 1, self.evidence(logbeta)

such that:

ret = mu, self.evidence(logv), self.evidence(logalpha) + 1, self.evidence(logbeta)
return torch.cat(ret, dim=-1)

the training does not seem to progress and a constant value is predicted. Is there any reasonable explanation for this?

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

Successfully merging this pull request may close these issues.

2 participants