SKKUCS / graduationProject

2018-2
2 stars 0 forks source link

Unexpected crash #16

Closed WinteringAsch closed 5 years ago

WinteringAsch commented 5 years ago

When dying caused by touching Goomba, unexpected crash occurs sometimes.

WinteringAsch commented 5 years ago

Instead of fixing everything, handling exception seems to be more realistic

WinteringAsch commented 5 years ago
  1. 가끔이 아니라 매번 일어나는 문제였음...
    • state_in 텐서의 입력 차원과 feed_dict의 차원이 달라서 생기는 문제였음.
  2. 이것을 예외처리하는건 학습을 포기시키는 결과를 낳음.
  3. numpy.reshape 함수를 통해서 둘의 차원을 통일시키는 것을 통해 해결함.

  4. It was not 'sometimes', but it was every time when the done flag is set to TRUE.
    • Crash was because of difference between the dimension of 'state_in' tensor and 'feed_dict' value.
  5. Handling this as an exception resulted to no learning whatsoever.
  6. Solved by using numpy.reshape function, which equalize the dimension of 'feed_dict' with 'state_in' tensor.
WinteringAsch commented 5 years ago

적어도 프로그램이 멈추는 현상은 없는 것으로 보여 닫음. 만일 발생시 다시 이슈 열기.