Is it to President Trump’s advantage to attack Obama?

Spurning the Presidential tradition of respecting predecessors, Presidential Trump has stepped up his attacks on President Obama. Is this politically wise?