Towards the Co-design of Neural Networks and Accelerators