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

PAC_CRF step setting question #26

Closed
GITSHOHOKU opened this issue Nov 22, 2021 · 2 comments
Closed

PAC_CRF step setting question #26

GITSHOHOKU opened this issue Nov 22, 2021 · 2 comments

Comments

@GITSHOHOKU
Copy link

Hi

Should we set CRF step to 1 when training the whole model? And step to whatever we want when in the inference processing?

Because when I set CRF step to num>1, it will cause the in-place operation in the training process.

@GITSHOHOKU GITSHOHOKU changed the title PAC_CRF setp setting question PAC_CRF step setting question Nov 22, 2021
@suhangpro
Copy link
Contributor

We train with the same number of iters used in inference (e.g. 5). What's the in-place operation you referred to?

@GITSHOHOKU
Copy link
Author

We train with the same number of iters used in inference (e.g. 5). What's the in-place operation you referred to?

The inplace_operation mentioned before points to the iteration manipulate value logQ , but it never happened again. Just a warning:
RuntimeWarning: Iterating over a tensor might cause the trace to be incorrect. Passing a tensor of different shape won't change the number of iterations executed (and might lead to errors or silently give incorrect results).
which doesn't affect the algorithm running.
Maybe it was just caused by Pytorch's inner mechanism. Now the training step is well.
Thanks for your quick reply.

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