MCPcopy Create free account
hub / github.com/NVIDIA/DALI / GetDeviceStr

Function GetDeviceStr

dali/c_api/c_api_test.cc:70–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69
70std::string GetDeviceStr(device_type_t dev) {
71 return dev == CPU ? "cpu" : "gpu";
72}
73
74// Allocates a buffer on the specified backend and, if necessary, another one for the CPU
75template <typename Backend>

Callers 3

GetTestPipelineFunction · 0.85
TYPED_TESTFunction · 0.85
TestForceFlagRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected