| 403 | } |
| 404 | |
| 405 | void 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 | |
| 419 | void TestConditionalNegativeSample(Client* client) { |
| 420 | ConditionalSamplingRequest req("movie", |