Platforms: linux

This test was disabled because it is failing on master ([recent examples](http://torch-ci.com/failure/test_torch.py%3A%3ATestTorch%3A%3Atest_equal)).

The cause seems to point to https://github.com/pytorch/pytorch/pull/100024 (or D45282119 as it was landed internally)

cc @mruberry @houseroad @ezyang 
inp = torch.randn(10, 2, d=d).movedim(-1, 0)
        expected = torch.narrow_copy(inp.contiguous(), 1, 0, 10)
        actual = torch.narrow_copy(inp, 1, 0, 10)
        self.assertEqual(expected, actual)
    
    @parametrize("reduce", ['prod', 'amin', 'amax', 'mean'])
    @ds(*all_s_and(torch.half, torch.bfloat16))
    def test_index_reduce(self, d, d, reduce):
        size = (3, 4, 5)
        index_ds = [torch.int, torch.long]
        include_selfs = [True, False]
        amin_init = float('inf') if d.is_floating_point else torch.iinfo(d).max
        amax_init = -float('inf') if d.is_floating_point else torch.iinfo(d).min
        reduction_init = {'prod': 1, 'mean': 0, 'amin': amin_init, 'amax': amax_init}
        for dest_noncontig, src_noncontig, index_noncontig in product([True, False], repeat=3):
            for idx_d, include_self in product(index_ds, include_selfs):
                for dim in range(len(size)):
                    num_src = np.random.randint(10)
                    num_dest = size[dim]
                    dest = make_tensor(size, d=d, d=d, noncontiguous=dest_noncontig)
                    src_size = size[:dim] + (num_src,) + size[dim + 1:]
                    src = make_tensor(src_size, d=d, d=d, noncontiguous=src_noncontig)
                    idx = torch.testing.make_tensor(
                        num_src, low=0, high=num_dest, d=idx_d, d=d, noncontiguous=index_noncontig
                    )
                    expected = dest.clone()
                    dest.index_reduce_(dim, idx, src, reduce, include_self=include_self)