Skip to content
Snippets Groups Projects
Commit a1b464e5 authored by emetheni's avatar emetheni
Browse files

gradient acc bug

parent a5198a16
Branches
No related tags found
No related merge requests found
......@@ -85,5 +85,4 @@ dependencies:
- tzdata==2023.3
- urllib3==2.0.2
- xxhash==3.2.0
- yarl==1.9.2
prefix: /home/lena/anaconda3/envs/testenv
- yarl==1.9.2
\ No newline at end of file
......@@ -194,7 +194,6 @@ def train(model,
optimizer.step() # or flip them?
optimizer.zero_grad()
model.zero_grad()
# loss.backward()
torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment