BindsNET / bindsnet

Simulation of spiking neural networks (SNNs) using PyTorch.
GNU Affero General Public License v3.0
1.49k stars 331 forks source link

Update batch_eth_mnist.py #667

Closed AXYZdong closed 6 months ago

AXYZdong commented 9 months ago

add .to(device) in line 209, 214, 366, 368. If not, may have the error RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!