Solved by yxw in post #2 
              
              
                Do you assigned the paramter of the gru unit batch_first=True when you training your net? it should be set to False ,onnx doesnot support if it is True