MCPcopy Create free account
hub / github.com/KomputeProject/kompute / toString

Method toString

src/Tensor.cpp:7–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace kp {
6
7std::string
8Tensor::toString(Tensor::TensorDataTypes dt)
9{
10 switch (dt) {
11 case TensorDataTypes::eBool:
12 return "eBool";
13 case TensorDataTypes::eInt:
14 return "eInt";
15 case TensorDataTypes::eUnsignedInt:
16 return "eUnsignedInt";
17 case TensorDataTypes::eFloat:
18 return "eFloat";
19 case TensorDataTypes::eDouble:
20 return "eDouble";
21 default:
22 return "unknown";
23 }
24}
25
26std::string
27Tensor::toString(Tensor::TensorTypes dt)

Callers 1

KomputeButtonOnClickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected