-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add embeddings_ layer and supporting utility functions #3021
Conversation
…PU & CUDA) and Add `add_to` Parameter
* remove using namespace std from headers * more std:: * more std:: * more std:: on windows stuff * remove uses of using namespace std::chrono * do not use C++17 features * Add Davis suggestion * revert some more stuff * revert removing include * more std::chrono stuff
Is this PR ready for review? It's got conflicts with git master. So not sure if I should be reviewing it yet or not. |
Yes, you can go. I hope that these conflicts, which come (as I mentioned in another thread) from the fact that I've created several branches from my fork to work in parallel on the new Dlib layers, won't overwrite useful changes for certain layers. That said, and if there are compilation problems, I'll obviously fix the few problems, but all the layers currently released are ready for review and integration into the master branch. Thanks in advance. |
Nice, this is cool. Thanks for the PR :) |
This PR introduces the
embeddings
_ layer class and adds two new utility functions,embeddings()
andembeddings_gradient()
, to the tensor_tools.h file. These additions enhance neural network capabilities, particularly for working with LLM-type networks.Key changes: