class_docstr: Aggregate the global object representation to update the representation for each pixel.
class_docstr_tok: ["Aggregate","the","global","object","representation","to","update","the","representation","for","each","pixel","."]
code: def forward(self, pixels, regions):
      context = self.attention_block(pixels, regions)
      feats = paddle.concat([context, pixels], axis=1)
      feats = self.conv1x1(feats)
  
      return feats
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg import utils
  from paddleseg.cvlibs import manager, param_init
  from paddleseg.models import layers
label_desc: Use image node_id 2 for calling the SpatialOCRModule obj's underlying member method code with example usage: obj.forward(pixels, regions) and returns: feats