Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llama : add stdexcept header for std::runtime_error #13

Open
wants to merge 1 commit into
base: xsn/vision_2
Choose a base branch
from

Conversation

danbev
Copy link

@danbev danbev commented Jan 20, 2025

This commit adds the stdexcept header to llama-arch.cpp to allow the use of std::runtime_error.
Currently the following compilation is generated:

/work/ai/new-vision-api/src/llama-arch.cpp: In member function‘std::string BASE_TN_IMPL<Tname, Ttensor>::str() const [with Tname = llm_arch; Ttensor = llm_tensor; std::string = std::__cxx11::basic_string<char>]’:
/home/danbev/work/ai/new-vision-api/src/llama-arch.cpp:1544:20: error: ‘runtime_error’ is not a member of ‘std’
 1544 |         throw std::runtime_error(format("Cannot find tensor name mapping for arch %d", arch));
      |                    ^~~~~~~~~~~~~

This commit adds the stdexcept header to llama-arch.cpp to allow the use
of std::runtime_error.
Currently the following compilation is generated:

```console
/work/ai/new-vision-api/src/llama-arch.cpp: In member function‘std::string BASE_TN_IMPL<Tname, Ttensor>::str() const [with Tname = llm_arch; Ttensor = llm_tensor; std::string = std::__cxx11::basic_string<char>]’:
/home/danbev/work/ai/new-vision-api/src/llama-arch.cpp:1544:20: error: ‘runtime_error’ is not a member of ‘std’
 1544 |         throw std::runtime_error(format("Cannot find tensor name mapping for arch %d", arch));
      |                    ^~~~~~~~~~~~~
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant