Imperial Japanese Naval Academy
Yashiro graduated from the 8th class of the Imperial Japanese Naval Academy in 1881, ranked 19th of his class of 35 cadets, and excelled at navigation and surveying. After midshipman service in the ironclad warship , he served as a crewman on the corvette . He was the posted to various administrative assignments within the Imperial Japanese Naval Academy. From July 1890 to November 1892, he was sent as a naval attaché to Vladivostok, in Russia.