https://nationalinterest.org/blog/the-buzz/fact-one-the-us-navys-most-heroic-stands-was-leyte-gulf-22999
Did you read down to this paragraph?
"But these planes were very hurriedly armed and launched and had no time to coordinate their movements, either. Even so, their attacks were aggressive and constant.
Most of the Avengers were armed with torpedoes until the supply of torpedoes ran out. Then they were sent out with bombs—any kind of bombs that were available, including 100-pound all-purpose bombs that were designed for hitting small land-based targets."
The escort carriers at Leyte Gulf carried approximately 28 planes each.
IIRC over half of those were Wildcat fighter. But, say, an even division between Avengers and Wildcats, so 14 planes capable of carrying torpedoes.
The fact that they ran out of torpedoes should be very telling just how few were carried during this operation. As designed (and digging WAY into memory) the magazines on an escort carrier, depending on class, could load around 100 aerial torpedoes.