Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def pytorch_native_wf():
# %% [markdown]
# Passing around tensors and modules is no more a hassle!

from dataclasses import dataclass

# %% [markdown]
# ## Checkpoint
Expand All @@ -85,6 +84,8 @@ def pytorch_native_wf():
# As per PyTorch [docs](https://pytorch.org/tutorials/beginner/saving_loading_models.html#save-load-entire-model), it is recommended to
# store the module's `state_dict` rather than the module itself. However, the serialization should work either way.
# %%
from dataclasses import dataclass

import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
Expand Down