pytorch/examples

No matching function call error in custom_dataset example

开放

#680 创建于 2019年12月15日

 (4 条评论) (0 个反应) (0 位负责人)Python (9,429 个派生)batch import
good first issue

仓库指标

星标
 (21,634 个星标)
PR 合并指标
 (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.

贡献者指南