Repository: pytorch
Issue: [failing test] test_foreach::test_binary_op_scalarlist_fastpath
Labels: triaged

### 🐛 Describe the bug

Following tests are failing in PR https://github.com/pytorch/pytorch/pull/77524
* `test_binary_op_scalarlist_fastpath__foreach_div_cuda_float16`
* `test_binary_op_scalarlist_fastpath__foreach_mul_cuda_float16`

Log
<details>
```
======================================================================
[9744](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9745)
FAIL [0.144s]: test_binary_op_scalarlist_fastpath__foreach_mul_cuda_float16 (__main__.TestForeachCUDA)
[9745](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9746)
----------------------------------------------------------------------
[9746](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9747)
Traceback (most recent call last):
[9747](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9748)
  File "/opt/conda/lib/python3.7/site-packages/torch/testing/_internal/common_utils.py", line 1808, in wrapper
[9748](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9749)
    method(*args, **kwargs)
[9749](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9750)
  File "/opt/conda/lib/python3.7/site-packages/torch/testing/_internal/common_device_type.py", line 377, in instantiated_test
[9750](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9751)
    result = test(self, **param_kwargs)
[9751](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9752)
  File "/opt/conda/lib/python3.7/site-packages/torch/testing/_internal/common_device_type.py", line 786, in test_wrapper
[9752](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9753)
    return test(*args, **kwargs)
[9753](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9754)
  File "/opt/conda/lib/python3.7/site-packages/torch/testing/_internal/common_device_type.py", line 821, in dep_fn
[9754](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9755)
    return fn(slf, *args, **kwargs)
[9755](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9756)
  File "test_foreach.py", line 243, in test_binary_op_scalarlist_fastpath
[9756](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9757)
    self._test_binary_op_scalarlist(device, dtype, op, N, scalarlist, True, disable_fastpath)
[9757](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9758)
  File "test_foreach.py", line 216, in _test_binary_op_scalarlist
[9758](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9759)
    self._binary_test(dtype, op, ref, inputs, is_fastpath, is_inplace=False)
[9759](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9760)
  File "test_foreach.py", line 111, in _binary_test
[9760](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9761)
    actual = op(inputs, self.is_cuda, is_fastpath)
[9761](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9762)
  File "test_foreach.py", line 83, in __call__
[9762](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9763)
    assert e.count == self.n_expected_cudaLaunchKernels
[9763](https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9764)
AssertionError
```
</details>
CI Ref:

* https://github.com/pytorch/pytorch/runs/6500788273?check_suite_focus=true#step:9:8642
* https://github.com/pytorch/pytorch/runs/6512197886?check_suite_focus=true#step:9:9722

NOTE: Tests passed locally on build with `cuda-11.3`

Will skip them in the PR

### Versions

master

cc: @ngimel @crcrpar @anjali411