class_docstr: FCOSLoss of Consistency Regularization
docstr: Compute locations of anchor points of each FPN layer
  Return:
      Anchor points locations of current FPN feature map
docstr_tok: ["Compute","locations","of","anchor","points","of","each","FPN","layer","Return",":","Anchor","points","locations","of","current","FPN","feature","map"]
code: def compute_locations_by_level(self, fpn_stride, h, w):
      """
      Compute locations of anchor points of each FPN layer
      Return:
          Anchor points locations of current FPN feature map
      """
      shift_x = paddle.arange(0, w * fpn_stride, fpn_stride)
      shift_y = paddle.arange(0, h * fpn_stride, fpn_stride)
      shift_x = paddle.unsqueeze(shift_x, axis=0)
      shift_y = paddle.unsqueeze(shift_y, axis=1)
      shift_x = paddle.expand(shift_x, shape=[h, w])
      shift_y = paddle.expand(shift_y, shape=[h, w])
      shift_x = paddle.reshape(shift_x, shape=[-1])
      shift_y = paddle.reshape(shift_y, shape=[-1])
      location = (
          paddle.stack([shift_x, shift_y], axis=-1)
          + float(fpn_stride) / 2
      )
      return location
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from ppdet.core.workspace import register
  from ppdet.modeling import ops
  from functools import partial
label_desc: Use image node_id 5 for calling the FCOSLossCR obj's underlying member method code with example usage: obj.compute_locations_by_level(fpn_stride, h, w) and returns: location