hongzimao / pensieve

Neural Adaptive Video Streaming with Pensieve (SIGCOMM '17)
http://web.mit.edu/pensieve/
MIT License
516 stars 279 forks source link

Puzzle with this line #126

Open sl950313 opened 3 years ago

sl950313 commented 3 years ago

https://github.com/hongzimao/pensieve/blob/1120bb173958dc9bc9f2ebff1a8fe688b6f4e93c/multi_video_sim/multi_agent.py#L284 state is array with shape (S_INFO, S_LEN), s_batchis container of previous states with shape (1, 6, 8). why the stateis created with shape=(1, 6, 8) ? Please help, thanks!

hongzimao commented 3 years ago

I think this is just to make the initial state compatible with other states for the np.roll step in https://github.com/hongzimao/pensieve/blob/1120bb173958dc9bc9f2ebff1a8fe688b6f4e93c/multi_video_sim/multi_agent.py#L289. You can pdb the code and examine the shapes of those variables. Hope this helps.