Torres threw a wobbler after being hooked against QPR on Saturday.
Allardyce told Sky Sports: "It's petty and childish. For me, it shows a lack of character by the player. Chelsea's a big football club and it's got a big squad that needs to be used all the way through. He's not scoring as many goals as he used to, but he's getting better.
"If the manager makes a decision you don't show your dissent by walking down the tunnel; you sit on the bench and go and see your manager on a Monday or Tuesday and discuss the reasons why you've been brought off. For me, that's unprofessional."