Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/FasterTransformer
/ isValid
Method
isValid
src/fastertransformer/utils/Tensor.h:308–311 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
306
std::unordered_map<std::string, Tensor> tensor_map_;
307
308
inline bool isValid(const Tensor& tensor)
309
{
310
return tensor.size() > 0 && tensor.data != nullptr;
311
}
312
313
public:
314
TensorMap() = default;
Callers
2
forward
Method · 0.45
forward
Method · 0.45
Calls
1
size
Method · 0.45
Tested by
no test coverage detected