MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / whereToString

Method whereToString

src/fastertransformer/utils/Tensor.cc:177–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177std::string Tensor::whereToString() const
178{
179 static const std::unordered_map<MemoryType, std::string> mem_to_string{
180 {MEMORY_CPU, "CPU"}, {MEMORY_CPU_PINNED, "CPU_PINNED"}, {MEMORY_GPU, "GPU"}};
181 return mem_to_string.at(where);
182}
183
184std::string Tensor::toString() const
185{

Callers 1

saveNpyMethod · 0.80

Calls 1

atMethod · 0.80

Tested by

no test coverage detected