Make the gpu opt for GroupDot check the node op and types of the inputs.