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

Puzzle with this line #126

Open
sl950313 opened this issue Dec 11, 2020 · 1 comment
Open

Puzzle with this line #126

sl950313 opened this issue Dec 11, 2020 · 1 comment

Comments

@sl950313
Copy link

sl950313 commented Dec 11, 2020

state = [np.zeros((S_INFO, S_LEN))]

state is array with shape (S_INFO, S_LEN), s_batch is container of previous states with shape (1, 6, 8). why the state is created with shape=(1, 6, 8) ?
Please help, thanks!

@hongzimao
Copy link
Owner

I think this is just to make the initial state compatible with other states for the np.roll step in

state = np.roll(state, -1, axis=1)
. You can pdb the code and examine the shapes of those variables. Hope this helps.

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