title: What is the difference between global_max_pool/global_avg_pool and avg_pool_2d/1d/3d?
body: <p>I've tried to compare the tutorial code for text classification from tflearn : <a href="https://github.com/tflearn/tflearn/blob/master/examples/nlp/cnn_sentence_classification.py" rel="nofollow noreferrer">https://github.com/tflearn/tflearn/blob/master/examples/nlp/cnn_sentence_classification.py</a></p>
  
  <p>And the one from dennybritz :
  <a href="https://github.com/dennybritz/cnn-text-classification-tf" rel="nofollow noreferrer">https://github.com/dennybritz/cnn-text-classification-tf</a></p>
  
  <p>These 2 codes shows different result, i understand that it can be because the tflearn tutorial use 1d convolution, but there is one line of code that i don't understand:</p>
  
  <p>network = global_max_pool(network)</p>
  
  <p>What is the difference between global_max_pool and max_pool_2d?</p>