Machine learning could be hardware as well. I'm in integrated circuit design and there are lots of custom hardware AI accelerators in development. Almost all of the new grads we hire have a masters degree in electrical or computer engineering (not computer science)