Neural Architecture Codesign for Fast Physics Applications