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

Function TEST

dali/c_api/c_api_test.cc:993–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991
992
993TEST(CApiTest, CpuOnlyTest) {
994 dali::Pipeline pipe(1, 1, dali::CPU_ONLY_DEVICE_ID);
995 pipe.AddExternalInput("dummy");
996 std::vector<std::pair<std::string, std::string>> outputs = {{"dummy", "cpu"}};
997 pipe.SetOutputDescs(outputs);
998 std::string ser = pipe.SerializeToProtobuf();
999 daliPipelineHandle handle;
1000 daliDeserializeDefault(&handle, ser.c_str(), ser.size());
1001 daliDeletePipeline(&handle);
1002}
1003
1004TEST(CApiTest, GetBackendTest) {
1005 dali::Pipeline pipe(1, 1, 0);

Callers

nothing calls this directly

Calls 15

daliDeserializeDefaultFunction · 0.85
daliDeletePipelineFunction · 0.85
daliGetOperatorBackendFunction · 0.85
daliGetNumExternalInputFunction · 0.85
daliGetExternalInputNameFunction · 0.85
daliGetExternalInputNdimFunction · 0.85
daliGetExternalInputTypeFunction · 0.85
daliGetMaxBatchSizeFunction · 0.85

Tested by

no test coverage detected