Introducing array-like sequence methods __contains__ (#17733)
Summary:
for tensor
Fixes: #17000
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17733
Differential Revision: D14401952
Pulled By: soumith
fbshipit-source-id: c841b128c5a1fceda1094323ed4ef1d0cf494909