Sorry, I still not good at pytorch. Thank you for your answer.
I’m interested, why did you change indexing in cat function from [:, :, 0] to [:, :, 0:1], don’t understand that.
I understand, how to fix most of this warnings, but still, don’t understand, how to fix this warning:
C:\Users\1\PycharmProjects\untitled\util.py:84: TracerWarning: Converting a tensor to a Python float might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  anchors = torch.FloatTensor(anchors)

But anchors variable is just pythonic list. Thank you