Text this: Automating multi-task learning on optical neural networks with weight sharing and physical rotation