Part 1: to assess the safety and tolerability of pyrotinib and to define the maximum tolerated dose (MTD) of pyrotinib in patients with Human Epidermal Growth Factor Receptor 2 (HER2)-positive advanced solid tumors (metastatic breast cancer, gastric cancer, or other solid tumors that have no targeted agent as standard of care).