Mapping Neural Network Inference Onto Heterogeneous Hardware Platforms