#include <TorchWrapper.h>
|
static bool | warmup_torch (const std::string &model_path, const bool use_gpu, const int64_t device_num) |
|
Definition at line 69 of file TorchWrapper.h.
bool TorchWarmer::warmup_torch |
( |
const std::string & |
model_path, |
|
|
const bool |
use_gpu, |
|
|
const int64_t |
device_num |
|
) |
| |
|
static |
Definition at line 503 of file TorchWrapper.cpp.
References ModelInfo::class_labels, get_model_info_from_file(), and print_model_params().
507 for (
size_t l = 0; l < model_info.class_labels.size(); ++l) {
508 std::cout << l <<
": " << model_info.class_labels[l] << std::endl;
ModelInfo get_model_info_from_file(const std::string &filename)
void print_model_params(const std::string &model_path, const bool use_gpu, const int64_t device_num)
bool TorchWarmer::is_torch_warmed |
|
static |
The documentation for this class was generated from the following files:
- /home/jenkins-slave/workspace/core-os-doxygen/QueryEngine/TableFunctions/SystemFunctions/os/Torch/TorchWrapper.h
- /home/jenkins-slave/workspace/core-os-doxygen/QueryEngine/TableFunctions/SystemFunctions/os/Torch/TorchWrapper.cpp