I’m facing the following error while trying to reproduce results from PyTorch Official Examples.
The error seems to be at the line:
push_back(Functional(torch::log_softmax, 1, torch::nullopt));.
Things I’ve changed: I’m using my own Dataset class and dataset. The network is exactly the same.
no matching function for call to ‘torch::nn::Functional::Functional(<unresolved overloaded function type>, int, const c10::nullopt_t&)’ push_back(Functional(torch::log_softmax, 1, torch::nullopt));
Any idea why this could happen?