MCPcopy Create free account
hub / github.com/alibaba/graph-learn / TestGetStats

Function TestGetStats

graphlearn/src/service/test/client_test.cpp:405–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void TestGetStats(Client* client) {
406 GetStatsRequest req;
407 GetStatsResponse res;
408 Status s = client->GetStats(&req, &res);
409 std::cout << "GetStats: " << s.ToString() << std::endl;
410 for(const auto& it : res.tensors_) {
411 std::cout << "type " << it.first << ", count :" << std::endl;
412 for (int32_t i = 0; i < it.second.Size(); ++i) {
413 std::cout << it.second.GetInt32(i) << ",";
414 }
415 std::cout << std::endl;
416 }
417}
418
419void TestConditionalNegativeSample(Client* client) {
420 ConditionalSamplingRequest req("movie",

Callers 1

mainFunction · 0.85

Calls 3

ToStringMethod · 0.45
SizeMethod · 0.45
GetInt32Method · 0.45

Tested by

no test coverage detected