Fixes #104965 Currently, the cpufallback mechinasm lack the code logic of TensorList, so some operators like _foreach_add_/_foreach_add don`t work well. cc @bdhirsh Pull Request resolved: https://github.com/pytorch/pytorch/pull/105209 Approved by: https://github.com/bdhirsh