Protecting artificial intelligence IPs: a survey of watermarking and fingerprinting for machine learning