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

Why used rewards[:-1] instead of rewards[1:]? #1

Open
M-Heidari2000 opened this issue Nov 21, 2024 · 0 comments
Open

Why used rewards[:-1] instead of rewards[1:]? #1

M-Heidari2000 opened this issue Nov 21, 2024 · 0 comments

Comments

@M-Heidari2000
Copy link

I have been reading this code and I saw in line 177 of train.py, rewards[:-1] is used instead of rewards[1:] for reward_loss. Is that a bug? If not, could you please explain why rewards[:-1] is correct?

Thank you

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

1 participant