Yes, I realize I'm almost literally describing SkyNet, but isn't that where the power would be, for better and worse? The strength of computers has always been the ability to analyze literally incomprehensible (to humans) amounts of data and derive unique insights from them, and current machine learning has magnified this ability several-fold. AIs have now repeatedly been dropped into all kinds of video games and gone from morons to competent to beating all human players and exploiting bugs no one even knew existed. In a grim sense war is just another game. It has constraints, resources, definable win and loss states, etc. Consider that conflicts have often tilted based on a single novel strategy discovered by limited human commanders, and then ponder what an AI that improves its Mario speedrun via nearly imperceptible collision glitches could do.
Potentially, weapons don't matter as much as how well you can use them.