Convert a int scalar to the layer's dtype in GlobalPoolingLayer.
Convert a int scalar to the layer's dtype in GlobalPoolingLayer.

PiperOrigin-RevId: 296244308

tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo