MaxPool has two outputs, Result and Argmax. For multi-output nodes you need to select a specific output when using it, for example maxPoolNode->getResult() or maxPoolNode->getArgmax(), instead of just using maxPoolNode as an input to another node.

  

      github.com
  

  
    pytorch/glow/blob/d5b32ee8a6f29166219963623648f9b15f1f94b8/tools/ClassGen/NodeGen.cpp#L161-L162 2



      
      
          .addResultFromCtorArg("Result")
          .addResultFromCtorArg("Argmax")