Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ sqr
Function
sqr
dnn/src/common/utils.h:237–239 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
235
*/
236
template <typename num_t>
237
num_t sqr(num_t x) {
238
return x * x;
239
}
240
241
template <typename T, typename... Args>
242
std::unique_ptr<T> make_unique(Args&&... args) {
Callers
2
rep
Function · 0.85
rep
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected