GithubHelp home page GithubHelp logo

Comments (2)

frankseide avatar frankseide commented on May 7, 2024

Please use VS Update 5. That is the version we use, and it is know that some older versions of 2013 do not yet have the array constructor that is causing the error.

Sent from Outlookhttp://aka.ms/Ox5hz3

On Sat, Jan 30, 2016 at 9:50 AM -0800, "yefeng-zheng" <[email protected]mailto:[email protected]> wrote:

Some projects don't compile under Visual Studio 2013 without changes

1 Filecpp isn't included in project HTKMLFReader
It is easy to fix Just add the missing file to the project

2 Initialization of array
The errors happen at several places, eg, in file TensorViewcpp
void TensorView::DoUnaryOpOf(ElemType beta, const TensorView& a, ElemType alpha, ElementWiseOperator op)
{

PrepareTensorOperands<ElemType, 2>(array<TensorShape, 2>{aGetShape(), GetShape()}, offsets, regularOpDims, regularStrides, reducingOpDims, reducingStrides);

}

I got the following error

1>TensorViewcpp(291): error C2440: '' : cannot convert from 'initializer-list' to 'std::arrayMicrosoft::MSR::CNTK::TensorShape,0x04'
1> Constructor for class 'std::arrayMicrosoft::MSR::CNTK::TensorShape,0x04' is declared 'explicit'
1> TensorViewcpp(280) : while compiling class template member function 'void Microsoft::MSR::CNTK::TensorView::DoTernaryOpOf(ElemType,const Microsoft::MSR::CNTK::TensorView &,const Microsoft::MSR::CNTK::TensorView &,const Microsoft::MSR::CNTK::TensorView &,ElemType,Microsoft::MSR::CNTK::ElementWiseOperator)'
1> with
1> [
1> ElemType=float
1> ]
1> c:\home\library\cntk\source\math\TensorViewh(117) : see reference to function template instantiation 'void Microsoft::MSR::CNTK::TensorView::DoTernaryOpOf(ElemType,const Microsoft::MSR::CNTK::TensorView &,const Microsoft::MSR::CNTK::TensorView &,const Microsoft::MSR::CNTK::TensorView &,ElemType,Microsoft::MSR::CNTK::ElementWiseOperator)' being compiled
1> with
1> [
1> ElemType=float
1> ]
1> TensorViewcpp(373) : see reference to class template instantiation 'Microsoft::MSR::CNTK::TensorView' being compiled

My work-around solution is to add an additional pair of '{' and '}' for the array as
PrepareTensorOperands(array{ { aGetShape(), GetShape()} } , offsets, regularOpDims, regularStrides, reducingOpDims, reducingStrides);

Anyone knows what is the root cause of this compiling error?

Reply to this email directly or view it on GitHubhttps://github.com//issues/64.

from cntk.

yefeng-zheng avatar yefeng-zheng commented on May 7, 2024

Yes, the compiling errors are gone after installing Update 5. Thank you very much!

from cntk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.