mirror of
https://github.com/wassname/Brukino_AntiPaSTO_Appetizer.git
synced 2026-06-27 16:58:47 +08:00
fix layers
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import torch
|
||||
x = torch.tensor([1.0, 2.0, 4.0, 7.0])
|
||||
with torch.no_grad():
|
||||
dx = torch.gradient(x)[0]
|
||||
print(dx)
|
||||
Reference in New Issue
Block a user