The final value is the same, but the path taken in {inc,set}_subtensor is not the same. Edit: currently the path taken is the same, but it may not always be the case in the future (as it was not always in the past), so I would prefer keeping them just in case. 