hstack = hstack.reshape(Learning.makeShape(1, hstack.shape()));
action = policy.nextAction(hstack);
}
lastAction = action;
StepReply<O> stepReply = getMdp().step(action);
<BUG>accuReward += stepReply.getReward();
if (getStepCounter() % skipFrame == 0 || stepReply.isDone()) {</BUG>
obs = stepReply.getObservation();
if (input.shape().length > 2)
input = input.reshape(Learning.makeShape(1, input.shape()));

hstack = hstack.reshape(Learning.makeShape(1, hstack.shape()));
action = policy.nextAction(hstack);
}
lastAction = action;
StepReply<O> stepReply = getMdp().step(action);
accuReward += stepReply.getReward()*getConf().getRewardFactor();
if (getStepCounter() % skipFrame == 0 || stepReply.isDone()) {
obs = stepReply.getObservation();
if (input.shape().length > 2)
input = input.reshape(Learning.makeShape(1, input.shape()));
