Joint Transmit and Pinching Beamforming for PASS: Optimization-Based or Learning-Based?