class_docstr: YOLOX network, see https://arxiv.org/abs/2107.08430
  
  Args:
      backbone (nn.Layer): backbone instance
      neck (nn.Layer): neck instance
      head (nn.Layer): head instance
      for_mot (bool): whether used for MOT or not
      input_size (list[int]): initial scale, will be reset by self._preprocess()
      size_stride (int): stride of the size range
      size_range (list[int]): multi-scale range for training
      random_interval (int): interval of iter to change self._input_size
class_docstr_tok: ["YOLOX","network",",","see","https",":","\/\/arxiv.org\/abs\/2107.08430","Args",":","backbone","(","nn.Layer",")",":","backbone","instance","neck","(","nn.Layer",")",":","neck","instance","head","(","nn.Layer",")",":","head","instance","for_mot","(","bool",")",":","whether","used","for","MOT","or","not","input_size","(","list","[","int","]",")",":","initial","scale",",","will","be","reset","by","self._preprocess","(",")","size_stride","(","int",")",":","stride","of","the","size","range","size_range","(","list","[","int","]",")",":","multi-scale","range","for","training","random_interval","(","int",")",":","interval","of","iter","to","change","self._input_size"]
code: def _get_size(self):
      # random_interval = 10 as default, every 10 iters to change self._input_size
      image_ratio = self.input_size[1] * 1.0 / self.input_size[0]
      if self._step % self.random_interval == 0:
          size_factor = random.randint(*self.size_range)
          size = [
              self.size_stride * size_factor,
              self.size_stride * int(size_factor * image_ratio),
          ]
          self._input_size = paddle.to_tensor(size)
      self._step += 1
  
file_path: PaddleDetection/ppdet/modeling/architectures/yolox.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from ppdet.core.workspace import register, create
  from .meta_arch import BaseArch
  import random
  import paddle
  import paddle.nn.functional
  import paddle.distributed
label_desc: Use image node_id 7 for calling the YOLOX obj's underlying member method code with example usage: obj._get_size() without return types