Dynamic Resource Allocation for Wireless Edge Machine Learning with Latency And Accuracy Guarantees