Updated Codegen and Structured Kernels (markdown)

Manuel
2024-07-03 19:27:24 +02:00
parent 5e61168773
commit 4eda1f5069

@ -386,3 +386,6 @@ struct structured_add_out_functional final : public at::native::structured_add_o
You can see that it has its own definition of set_output() - in this case, its implementing the functional at::add kernel, so it needs to allocate a new tensor as the output (it does that using at::native::empty_cpu()).
That class corresponds to one of the leaves of the class hierarchy - a picture of the full class hierarchy can be found in the linked presentation (https://drive.google.com/file/d/16qPvpCF4Jbh7ss2lCQMk5hmcyzJvUyQj/view?usp=sharing)
## Next
Unit 4: Dispatcher, Structured Kernels, and Codegen - [Dispatcher and Structured Kernels Lab](https://github.com/pytorch/pytorch/wiki/Dispatcher---Structured-Kernels-Lab)