-l option is replaced with -extensions (#10878)
This commit is contained in:
1 parent
9b4e8f5b59
commit
787610b0db
3 files changed
+11
-12
No files matched your search
@@ -69,7 +69,7 @@ Options:
|
||||
In case of dynamic shapes networks with several inputs provide the same number of files for each input (except cases with single file for any input):"input1:1.jpg input2:1.bin", "input1:1.bin,2.bin input2:3.bin input3:4.bin,5.bin ". Also you can pass specific keys for inputs: "random" - for fillling input with random data, "image_info" - for filling input with image size.
|
||||
You should specify either one files set to be used for all inputs (without providing input names) or separate files sets for every input of model (providing inputs names).
|
||||
-d "<device>" Optional. Specify a target device to infer on (the list of available devices is shown below). Default value is CPU. Use "-d HETERO:<comma-separated_devices_list>" format to specify HETERO plugin. Use "-d MULTI:<comma-separated_devices_list>" format to specify MULTI plugin. The application looks for a suitable plugin for the specified device.
|
||||
-l "<absolute_path>" Required for CPU custom layers. Absolute path to a shared library with the kernels implementations.
|
||||
-extensions "<absolute_path>" Required for custom layers (extensions). Absolute path to a shared library with the kernels implementations.
|
||||
Or
|
||||
-c "<absolute_path>" Required for GPU custom kernels. Absolute path to an .xml file with the kernels description.
|
||||
-hint "performance hint (latency or throughput or none)" Optional. Performance hint allows the OpenVINO device to select the right network-specific settings.
|
||||
|
||||
@@ -96,8 +96,8 @@ static const char enforce_bf16_message[] =
|
||||
" 'false' - disable bfloat16 regardless of platform support";
|
||||
|
||||
/// @brief message for user library argument
|
||||
static const char custom_cpu_library_message[] =
|
||||
"Required for CPU custom layers. Absolute path to a shared library with the kernels "
|
||||
static const char custom_extensions_library_message[] =
|
||||
"Required for custom layers (extensions). Absolute path to a shared library with the kernels "
|
||||
"implementations.";
|
||||
|
||||
/// @brief message for clDNN custom kernels desc
|
||||
@@ -251,9 +251,9 @@ DEFINE_string(api, "async", api_message);
|
||||
/// @brief device the target device to infer on <br>
|
||||
DEFINE_string(d, "CPU", target_device_message);
|
||||
|
||||
/// @brief Absolute path to CPU library with user layers <br>
|
||||
/// @brief Absolute path to extensions library with user layers <br>
|
||||
/// It is a required parameter
|
||||
DEFINE_string(l, "", custom_cpu_library_message);
|
||||
DEFINE_string(extensions, "", custom_extensions_library_message);
|
||||
|
||||
/// @brief Define parameter for clDNN custom kernels path <br>
|
||||
/// Default is ./lib
|
||||
@@ -373,8 +373,7 @@ static void show_usage() {
|
||||
std::cout << " -m \"<path>\" " << model_message << std::endl;
|
||||
std::cout << " -i \"<path>\" " << input_message << std::endl;
|
||||
std::cout << " -d \"<device>\" " << target_device_message << std::endl;
|
||||
std::cout << " -l \"<absolute_path>\" " << custom_cpu_library_message << std::endl;
|
||||
std::cout << " Or" << std::endl;
|
||||
std::cout << " -extensions \"<absolute_path>\" " << custom_extensions_library_message << std::endl;
|
||||
std::cout << " -c \"<absolute_path>\" " << custom_cldnn_message << std::endl;
|
||||
std::cout << " -hint \"performance hint (latency or throughput or none)\" " << hint_message << std::endl;
|
||||
std::cout << " -api \"<sync/async>\" " << api_message << std::endl;
|
||||
|
||||
@@ -209,10 +209,10 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
ov::Core core;
|
||||
|
||||
if (FLAGS_d.find("CPU") != std::string::npos && !FLAGS_l.empty()) {
|
||||
// CPU plugin extensions is loaded as a shared library
|
||||
core.add_extension(FLAGS_l);
|
||||
slog::info << "CPU plugin extensions is loaded " << FLAGS_l << slog::endl;
|
||||
if (!FLAGS_extensions.empty()) {
|
||||
// Extensions are loaded as a shared library
|
||||
core.add_extension(FLAGS_extensions);
|
||||
slog::info << "Extensions are loaded: " << FLAGS_extensions << slog::endl;
|
||||
}
|
||||
|
||||
// Load clDNN Extensions
|
||||
@@ -225,7 +225,7 @@ int main(int argc, char* argv[]) {
|
||||
if (config.count("GPU") && config.at("GPU").count(CONFIG_KEY(CONFIG_FILE))) {
|
||||
auto ext = config.at("GPU").at(CONFIG_KEY(CONFIG_FILE)).as<std::string>();
|
||||
core.set_property("GPU", {{CONFIG_KEY(CONFIG_FILE), ext}});
|
||||
slog::info << "GPU extensions is loaded " << ext << slog::endl;
|
||||
slog::info << "GPU extensions are loaded: " << ext << slog::endl;
|
||||
}
|
||||
|
||||
slog::info << "OpenVINO: " << ov::get_openvino_version() << slog::endl;
|
||||
|
||||
Reference in new issue
Block a user