Update doc copyrights to 2024 (#138650)

Update copyrights to 2024 (#138638)

Spiritual successor of https://github.com/pytorch/pytorch/pull/119413 + CPP docs copyright update as well
Fixes https://github.com/pytorch/pytorch/issues/138630

Pull Request resolved: https://github.com/pytorch/pytorch/pull/138638
Approved by: https://github.com/atalman

(cherry picked from commit d1be61ce4eb31640d1bdce07c8e6b17d03cbdca6)

Co-authored-by: Nikita Shulga <[email protected]>
diff --git a/docs/cpp/source/conf.py b/docs/cpp/source/conf.py
index 838f5f2..7e8cdb8 100644
--- a/docs/cpp/source/conf.py
+++ b/docs/cpp/source/conf.py
@@ -123,7 +123,7 @@
 
 # General information about the project.
 project = "PyTorch"
-copyright = "2022, PyTorch Contributors"
+copyright = "2024, PyTorch Contributors"
 author = "PyTorch Contributors"
 
 # The version info for the project you're documenting, acts as replacement for
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 5774664..b1791f1 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -3352,7 +3352,7 @@
 
 # General information about the project.
 project = "PyTorch"
-copyright = "2023, PyTorch Contributors"
+copyright = "2024, PyTorch Contributors"
 author = "PyTorch Contributors"
 torch_version = str(torch.__version__)