From 1fce09f87f20f640bbae121d53e646a03bca8506 Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Wed, 2 Oct 2024 10:23:37 -0700 Subject: [PATCH 1/3] Fix a typo in the inductor Windows CPU tutorial --- prototype_source/inductor_windows_cpu.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype_source/inductor_windows_cpu.rst b/prototype_source/inductor_windows_cpu.rst index eb10be5a3d1..854a5537e22 100644 --- a/prototype_source/inductor_windows_cpu.rst +++ b/prototype_source/inductor_windows_cpu.rst @@ -54,7 +54,7 @@ Set Up the Environment .. code-block:: sh "C:/ProgramData/miniforge3/Scripts/activate.bat" -#. Create and activate a customer conda environment: +#. Create and activate a custom conda environment: .. code-block:: sh From 78189edec65f2c4484c7d0baed1977e6a28d382c Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Wed, 2 Oct 2024 10:34:42 -0700 Subject: [PATCH 2/3] Update inductor_windows_cpu.rst --- prototype_source/inductor_windows_cpu.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype_source/inductor_windows_cpu.rst b/prototype_source/inductor_windows_cpu.rst index 854a5537e22..0ad85ae0ea2 100644 --- a/prototype_source/inductor_windows_cpu.rst +++ b/prototype_source/inductor_windows_cpu.rst @@ -79,7 +79,7 @@ Here’s a simple example to demonstrate how to use TorchInductor: opt_foo1 = torch.compile(foo) print(opt_foo1(torch.randn(10, 10), torch.randn(10, 10))) -The code above returns the following output: +Here is the sample output that this code might return: .. code-block:: sh From 4e3a4f96f5c64717e811dd06a058d33bf0db5815 Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Wed, 2 Oct 2024 10:41:21 -0700 Subject: [PATCH 3/3] Update inductor_windows_cpu.rst --- prototype_source/inductor_windows_cpu.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype_source/inductor_windows_cpu.rst b/prototype_source/inductor_windows_cpu.rst index 0ad85ae0ea2..801ebe060e0 100644 --- a/prototype_source/inductor_windows_cpu.rst +++ b/prototype_source/inductor_windows_cpu.rst @@ -74,7 +74,7 @@ Here’s a simple example to demonstrate how to use TorchInductor: import torch def foo(x, y): a = torch.sin(x) - b = torch.cos(x) + b = torch.cos(y) return a + b opt_foo1 = torch.compile(foo) print(opt_foo1(torch.randn(10, 10), torch.randn(10, 10)))