actor-critic is a kind of method.Advantage actor-critic(A2C) is a good implement of this method.
I don’t think what you have said is all right. Actually the reward in the code you stick is the advantage function.In the latest code, the reward has been changed to advantage.And the advantage function can be represented as ，which is equal to the code : advantage = r - value.data[0]