Open kaiyun717 opened 1 month ago
Time taken for torch: 0.6370642185211182
Time taken for numpy: 0.006148815155029297
Phi computation time: 0.005672454833984375
x_next computation time: 0.0008361339569091797
Next phi computation time: 0.005527019500732422
STATUS: Inside
Time taken for compute control for inside: 0.0122528076171875
Phi computation time: 0.00552058219909668
x_next computation time: 0.0007758140563964844
Next phi computation time: 0.00564122200012207
STATUS: Outside
f_x computation time: 0.00014400482177734375
g_x computation time: 8.368492126464844e-05
Phi grad computation time: 0.013029098510742188
QP solve time: 0.0020928382873535156
Time taken for compute control for outside: 0.027651309967041016
Time taken for torch: 0.6307542324066162
phi_torch.shape=torch.Size([1000, 3])
Time taken for numpy: 0.006203174591064453
phi_numpy.shape=(1000, 3)
```Time taken for torch: 0.6502704620361328
phi_torch.shape=torch.Size([100000, 3])
Time taken for numpy: 0.03185391426086426
phi_numpy.shape=(100000, 3)
You need to run the inference once before testing the actual speed.
CPU Computation Time
One sample
1000 samples
100,000 samples