class_docstr: Resample feature map for downsampling or upsampling.
docstr: Apply 1x1 conv to change layer width if necessary.
docstr_tok: ["Apply","1x1","conv","to","change","layer","width","if","necessary","."]
code: def _maybe_apply_1x1(self, feat, training, num_channels):
      """Apply 1x1 conv to change layer width if necessary."""
      if num_channels != self.target_num_channels:
          feat = self.conv2d(feat)
          if self.apply_bn:
              feat = self.bn(feat, training=training)
      return feat
  
imports: import functools
  from absl import logging
  import numpy
  import tensorflow
  import utils
  from .None import fpn_configs
label_desc: Use image node_id 4 for calling the ResampleFeatureMap obj's underlying member method code with example usage: obj._maybe_apply_1x1(feat, training, num_channels) and returns: feat