Exploring torch.func: Functional Transformations in PyTorch
🧠Introduction: What Is torch.func? In PyTorch, most models are built using stateful objects like nn.Module. While this is intuitive and powerful, functional programming can unlock more control, composability, and…