Fix #42271 (#50141)
Summary:
This pull fix #{42271} by manually specify template data type of `tensor<template>.item()` in `aten/src/THC/generic/THCTensorMasked.cu`.
Changes in submodules are not expected since I have pulled the latest submodules from the Pytorch master branch.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50141
Reviewed By: zou3519
Differential Revision: D25826104
Pulled By: ezyang
fbshipit-source-id: 80527a14786b36e4e520fdecc932e257d2520f89