File "/home/muhammad.huzaifa/Documents/LifeLonger/src/main_incremental.py", line 348, in
main()
File "/home/muhammad.huzaifa/Documents/LifeLonger/src/main_incremental.py", line 294, in main
appr.train(t, trn_loader[t], val_loader[t])
File "/home/muhammad.huzaifa/Documents/LifeLonger/src/approach/incremental_learning.py", line 56, in train
self.train_loop(t, trn_loader, val_loader)
File "/home/muhammad.huzaifa/Documents/LifeLonger/src/approach/icarl.py", line 122, in train_loop
self.compute_mean_of_exemplars(trn_loader, val_loader.dataset.transform)
File "/home/muhammad.huzaifa/Documents/LifeLonger/src/approach/icarl.py", line 87, in compute_mean_of_exemplars
extracted_features = torch.cat(extracted_features)
RuntimeError: There were no tensor arguments to this function (e.g., you passed an empty list of Tensors), but no fallback function is registered for schema aten::_cat. This usually means that this function requires a non-empty list of Tensors. Available functions are [CPU, CUDA, QuantizedCPU, BackendSelect, Named, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, Autocast, Batched, VmapMode].
CPU: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/build/aten/src/ATen/CPUType.cpp:2127 [kernel]
CUDA: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/build/aten/src/ATen/CUDAType.cpp:2983 [kernel]
QuantizedCPU: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/build/aten/src/ATen/QuantizedCPUType.cpp:297 [kernel]
BackendSelect: fallthrough registered at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/core/BackendSelectFallbackKernel.cpp:3 [backend fallback]
Named: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/core/NamedRegistrations.cpp:7 [backend fallback]
AutogradOther: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel]
AutogradCPU: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel]
AutogradCUDA: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel]
AutogradXLA: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel]
AutogradPrivateUse1: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel]
AutogradPrivateUse2: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel]
AutogradPrivateUse3: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel]
Tracer: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/TraceType_2.cpp:9654 [kernel]
Autocast: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/autocast_mode.cpp:258 [kernel]
Batched: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/BatchingRegistrations.cpp:511 [backend fallback]
VmapMode: fallthrough registered at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/VmapModeRegistrations.cpp:33 [backend fallback]
Script used for running:
bash ./script_bloodmnist.sh icarl 0 fixd ../resutls/bloodmnist
Error Message:
File "/home/muhammad.huzaifa/Documents/LifeLonger/src/main_incremental.py", line 348, in
main()
File "/home/muhammad.huzaifa/Documents/LifeLonger/src/main_incremental.py", line 294, in main
appr.train(t, trn_loader[t], val_loader[t])
File "/home/muhammad.huzaifa/Documents/LifeLonger/src/approach/incremental_learning.py", line 56, in train
self.train_loop(t, trn_loader, val_loader)
File "/home/muhammad.huzaifa/Documents/LifeLonger/src/approach/icarl.py", line 122, in train_loop
self.compute_mean_of_exemplars(trn_loader, val_loader.dataset.transform)
File "/home/muhammad.huzaifa/Documents/LifeLonger/src/approach/icarl.py", line 87, in compute_mean_of_exemplars
extracted_features = torch.cat(extracted_features)
RuntimeError: There were no tensor arguments to this function (e.g., you passed an empty list of Tensors), but no fallback function is registered for schema aten::_cat. This usually means that this function requires a non-empty list of Tensors. Available functions are [CPU, CUDA, QuantizedCPU, BackendSelect, Named, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, Autocast, Batched, VmapMode].
CPU: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/build/aten/src/ATen/CPUType.cpp:2127 [kernel] CUDA: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/build/aten/src/ATen/CUDAType.cpp:2983 [kernel] QuantizedCPU: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/build/aten/src/ATen/QuantizedCPUType.cpp:297 [kernel] BackendSelect: fallthrough registered at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/core/BackendSelectFallbackKernel.cpp:3 [backend fallback] Named: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/core/NamedRegistrations.cpp:7 [backend fallback] AutogradOther: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel] AutogradCPU: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel] AutogradCUDA: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel] AutogradXLA: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel] AutogradPrivateUse1: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel] AutogradPrivateUse2: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel] AutogradPrivateUse3: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/VariableType_2.cpp:8078 [autograd kernel] Tracer: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/torch/csrc/autograd/generated/TraceType_2.cpp:9654 [kernel] Autocast: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/autocast_mode.cpp:258 [kernel] Batched: registered at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/BatchingRegistrations.cpp:511 [backend fallback] VmapMode: fallthrough registered at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/VmapModeRegistrations.cpp:33 [backend fallback]