gpt4 book ai didi

c++ - Windows ARM上的Windows机器学习(winML)

转载 作者:行者123 更新时间:2023-12-02 10:38:14 33 4
gpt4 key购买 nike

我正在尝试在ARM64上编译一个winML,但是收到以下错误:

Error LNK2001 unresolved external symbol "void __cdecl ConcurrentLoadModel(class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > const &,unsigned int,unsigned int,bool)" (?ConcurrentLoadModel@@YAXAEBV?$vector@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@V?$allocator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@@std@@II_N@Z) WinMLRunner C:\Users\t\Downloads\Windows-Machine-Learning-master\Windows-Machine-Learning-master\Tools\WinMLRunner\WinMLRunnerStaticLib.lib(Run.obj) 1



我正在使用 VS 2019。关于如何解决错误的任何建议?

最佳答案

看起来WinMLRunnerScenarios库中ConcurrentLoadModel的实现尚未针对ARM64构建。同时,如果您不使用ConcurrentLoad场景,则可以注释掉following lines,它会很好地构建:

        if (args.IsConcurrentLoad())
{
ConcurrentLoadModel(modelPaths, args.NumThreads(), args.ThreadInterval(), true);
return 0;
}

关于c++ - Windows ARM上的Windows机器学习(winML),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59038569/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com