What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug

What does this PR do / why do we need it:
move mempool_block_size to pynative mode

Which issue(s) this PR fixes:

Fixes #I5LNJP:[ST][MS][NEWESTRUN][network]Retinanet and transformer run out of memory .

Special notes for your reviewers:

CheckList:

  • I have added correct copyrights for every code file.
  • I have removed all the redundant code and comments.
  • I have updated or added the requirements.txt for the third-party libraries you need.
  • I have made sure that I won't expose any personaly information such as local path with user name, local IP, etc.
  • I have commented my code, particularly in hard-to-understand areas. All the comments in code files are in English.
  • I have made corresponding changes to the documentation.
  • I have squashed all the commits into one.
  • I have test and ascertained the effect of my change in all related cases.
    • Different hardware: CPU, GPU, Ascend910, Ascend310, Ascend310P.
    • Different mode: GRAPH_MODE, PYNATIVE_MODE.
    • Different system: Linux, Windows, MAC.
    • Different number of cluster: 1pc, 8pcs.
  • I have checked the following usual mistakes:
    • It is recommended to use bash instead of sh.
    • Don't use type=bool in argparse.
  • If you are contributing a new model, please check:
    • I have added at least one README
    • The models implemented for the cloud could work offline on the local server as well.
    • I have made sure the changes for new device target will not make differences on the original one.
  • If you are contributing a new function, please check:
    • I have added the corresponding information in README.
    • I have notify the maintenance team about this function.