When the government prints money in order to spend money it does not have, that is inflation. Tariffs are a method of revenue and not a monetary policy. Tariffs are not inflationary.
Tarriffs certainly CAN be inflationary, if there are enough of them. Usually people just avoid the costs if they are onerous.
In this case, however, China devalued its currency so the end price didn’t increase for US consumers - which is currency manipulation and a problem, but didn’t inflate prices.