When the Shark fired torpedoes at the battleship Yamato, it was positioned right in the middle of the formation led by the Yamato.
Yes, it was a suicide position.
The cruiser Yahagi, and the destroyers Fuyutsuki, Suzutsuki, Yukikaze, Isokaze, Hamakaze, Kasumi, Hatsushimo, and Asashimo were all around her.
Didn't they notice the Shark?
In the decades that followed, many naval historians debated this surprise attack, discussing this great miracle.
Many attributed it to chance—the bad weather created too much underwater noise, the Japanese Navy's poor sonar equipment failed to pick up the Shark amid the cacophony, and of course, there was a bit of luck. If the Yamato hadn't blundered right in front of the Shark, penetrating the escort screen would not have been easy.