A Deep Learning Based Cost Model for Automatic Code Optimization