class_docstr: ConvNet model.
class_docstr_tok: ["ConvNet","model","."]
code: def _myGlobalAvgPool(self, x):
      assert x.get_shape().ndims == 4
      if self._data_format == "channels_first":
          x = tf.reduce_mean(x, [2, 3])
      else:
          x = tf.reduce_mean(x, [1, 2])
      return x
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
label_desc: Use image node_id 14 for calling the ConvNet obj's underlying member method code with example usage: obj._myGlobalAvgPool(x) and returns: x