assert non-empty in tracing before BatchPermutation
assert non-empty in tracing before BatchPermutation

Summary: otherwise the traced control flow might be different?

Reviewed By: theschnitz

Differential Revision: D25046482

fbshipit-source-id: 21854a38a2cdd15d31f9f40b5d2e474a6b4b3e5c

facebookresearch/detectron2,facebookresearch/detectron2,facebookresearch/detectron2