MCPcopy 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
313public:
314 TensorMap() = default;

Callers 2

forwardMethod · 0.45
forwardMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected