Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davisking/dlib
/ scale_weights_
Method
scale_weights_
examples/slm_advanced_train_ex.cpp:233–233 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
231
class scale_weights_ : public multiply_ {
232
public:
233
explicit scale_weights_() : multiply_(1.0f / std::sqrt(static_cast<float>(d_k_))) {}
234
};
235
236
template <long d_k, typename SUBNET>
Callers
nothing calls this directly
Calls
1
sqrt
Function · 0.50
Tested by
no test coverage detected