blob: 37d9f21d52203bbaa69e686aded202b0af35b4dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
Testing optimized SpikingVGG forward...
Testing on device: cuda
Model depth: 6 conv layers
Parameters: 1,187,274
[Test 1] Forward without Lyapunov...
Logits shape: torch.Size([8, 10]) ✓
[Test 2] Forward with Lyapunov...
Logits shape: torch.Size([8, 10]) ✓
Lyapunov exponent: 3.7419 ✓
[Test 3] Backward pass...
Loss: 7.8463 ✓
Gradient norm: 31.7484 ✓
No NaN gradients ✓
[Test 4] Multiple training steps...
Step 1: loss=7.9773, λ=3.7339
Step 2: loss=13.1875, λ=4.3379
Step 3: loss=8.0979, λ=3.7268
Step 4: loss=9.2944, λ=3.9946
Step 5: loss=10.2174, λ=3.8627
==================================================
ALL TESTS PASSED!
==================================================
Done!
|