How to set start & stop point with dlprof <nsys_profile_range >?

Hi,
I have tried use <nsys_profile_range > to profile within a range with my model .
But how could I set the start or stop point in my tensorlfow training script?
Env:telsa V100 + nvcr.io/nvidia/tensorflow:21.06-tf1-py3