Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/FasterTransformer
/ as_vec
Method
as_vec
examples/cpp/xlnet/cnpy.h:55–59 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
53
54
template<typename T>
55
std::vector<T> as_vec() const
56
{
57
const T* p = data<T>();
58
return std::vector<T>(p, p + num_vals);
59
}
60
61
size_t num_bytes() const
62
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected