Skip to content

error: ‘_cvtsh_ss’ was not declared in this scope #1

Description

@BaoyanWang

In file included from /usr/include/c++/4.8.2/ext/hash_map:60:0,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/Hash_map.hpp:73,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/MyLib.h:29,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/CheckGrad.h:13,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/N3L.h:4,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/SparseTNNCRFMLLabeler.h:12,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/SparseTNNCRFMLLabeler.cpp:8:
/usr/include/c++/4.8.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning
^
In file included from /data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/./base.h:278:0,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/tensor.h:16,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/CheckGrad.h:12,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/N3L.h:4,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/SparseTNNCRFMLLabeler.h:12,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/SparseTNNCRFMLLabeler.cpp:8:
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h: In member function ‘mshadow::half::half_t::operator float() const’:
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h:73:29: error: ‘_cvtsh_ss’ was not declared in this scope
return T(cvtsh_ss(half)); /* NOLINT()/
^
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h:120:3: note: in expansion of macro ‘MSHADOW_HALF_CONVERSIONOP’
MSHADOW_HALF_CONVERSIONOP(float)
^
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h: In member function ‘mshadow::half::half_t::operator float() const volatile’:
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h:76:29: error: ‘_cvtsh_ss’ was not declared in this scope
return T(cvtsh_ss(half)); /* NOLINT()/
^
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h:120:3: note: in expansion of macro ‘MSHADOW_HALF_CONVERSIONOP’
MSHADOW_HALF_CONVERSIONOP(float)
^
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h: In member function ‘void mshadow::half::half_t::constructor(const T&)’:
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h:260:51: error: there are no arguments to ‘_cvtss_sh’ that depend on a template parameter, so a declaration of ‘cvtss_sh’ must be available [-fpermissive]
half
= _cvtss_sh(static_cast(value), 0);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions