pytorch/examples

No matching function call error in custom_dataset example

Open

#680 创建于 2019年12月15日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Python (9,429 fork)batch import
good first issue

仓库指标

Star
 (21,634 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Hi, An error occurs when attempting to compile the sample code in line push_back(Functional(torch::log_softmax, 1, torch::nullopt));

And the error is

error: no matching function for call to 'torch::nn::Functional::Functional(<unresolved overloaded function type>, int, const c10::nullopt_t&)'

Am I missing something? I have used the same code in example.

贡献者指南