No. Of course, any severe violence against a child is an assault.
If you're worried about two fingers tapping a hand, I'd like to ask you this: Has that child turned two or are they turning two tomorrow? If they're turning two tomorrow, that is already against the law. An 18-month-old or anybody below two years old cannot be hit in any way.