allow boxes to be tensor for paste_masks_in_image (#731)
allow boxes to be tensor for paste_masks_in_image (#731)

Summary:
Thanks for your contribution!

If you're sending a large PR (e.g., >50 lines),
please open an issue first about the feature / bug, and indicate how you want to contribute.
See more at https://detectron2.readthedocs.io/notes/contributing.html#pull-requests
about how we handle PRs.

Before submitting a PR, please run `dev/linter.sh` to lint the code.
Pull Request resolved: https://github.com/facebookresearch/detectron2/pull/731

Differential Revision: D19482657

Pulled By: ppwwyyxx

fbshipit-source-id: dacbc0b911568ef8428f550f9752c52aff0f2585

facebookresearch/detectron2,facebookresearch/detectron2,facebookresearch/detectron2