Application of AI in Additive Manufacturing