Added more checks in remote_tensors tests (#8014)

This commit is contained in:
Ilya Lavrenov 2021-10-14 17:48:26 +03:00 committed by GitHub
parent 799be77e33
commit 5128b1f23d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 18 deletions

View File

@ -49,7 +49,7 @@ public:
* See register_plugins for more details. * See register_plugins for more details.
* *
* @param xmlConfigFile A path to .xml file with plugins to load from. If XML configuration file is not specified, * @param xmlConfigFile A path to .xml file with plugins to load from. If XML configuration file is not specified,
* then default Inference Engine plugins are loaded from the default plugin.xml file. * then default OpenVINO Runtime plugins are loaded from the default plugin.xml file.
*/ */
explicit Core(const std::string& xmlConfigFile = {}); explicit Core(const std::string& xmlConfigFile = {});
@ -231,7 +231,7 @@ public:
std::vector<std::string> get_available_devices() const; std::vector<std::string> get_available_devices() const;
/** /**
* @brief Register new device and plugin which implement this device inside Inference Engine. * @brief Register new device and plugin which implement this device inside OpenVINO Runtime.
* *
* @param pluginName A name of plugin. Depending on platform pluginName is wrapped with shared library suffix and * @param pluginName A name of plugin. Depending on platform pluginName is wrapped with shared library suffix and
* prefix to identify library full name * prefix to identify library full name
@ -242,15 +242,15 @@ public:
void register_plugin(const std::string& pluginName, const std::string& deviceName); void register_plugin(const std::string& pluginName, const std::string& deviceName);
/** /**
* @brief Unloads previously loaded plugin with a specified name from Inference Engine * @brief Unloads previously loaded plugin with a specified name from OpenVINO Runtime
* The method is needed to remove plugin instance and free its resources. If plugin for a * The method is needed to remove plugin instance and free its resources. If plugin for a
* specified device has not been created before, the method throws an exception. * specified device has not been created before, the method throws an exception.
* *
* @param deviceName Device name identifying plugin to remove from Inference Engine * @param deviceName Device name identifying plugin to remove from OpenVINO Runtime
*/ */
void unload_plugin(const std::string& deviceName); void unload_plugin(const std::string& deviceName);
/** @brief Registers plugin to Inference Engine Core instance using XML configuration file with /** @brief Registers plugin to OpenVINO Runtime Core instance using XML configuration file with
* plugins description. * plugins description.
* *
* XML file has the following structure: * XML file has the following structure:

View File

@ -34,7 +34,7 @@ class Core;
*/ */
class OPENVINO_RUNTIME_API ExecutableNetwork { class OPENVINO_RUNTIME_API ExecutableNetwork {
std::shared_ptr<void> _so; std::shared_ptr<void> _so;
std::shared_ptr<InferenceEngine::IExecutableNetworkInternal> _impl; std::shared_ptr<ie::IExecutableNetworkInternal> _impl;
/** /**
* @brief Constructs ExecutableNetwork from the initialized std::shared_ptr * @brief Constructs ExecutableNetwork from the initialized std::shared_ptr

View File

@ -25,7 +25,7 @@ namespace gpu {
/** /**
* @brief This class represents an abstraction for GPU plugin remote tensor * @brief This class represents an abstraction for GPU plugin remote tensor
* which is shared with Direct3D 11 buffer. * which is shared with Direct3D 11 buffer.
* The plugin object derived from this class can be obtained with create_tensor() call. * The plugin object derived from this class can be obtained with D3DContext::create_tensor() call.
* @note User can also obtain OpenCL buffer handle from this class. * @note User can also obtain OpenCL buffer handle from this class.
*/ */
class D3DBufferTensor : public ClBufferTensor { class D3DBufferTensor : public ClBufferTensor {
@ -52,7 +52,7 @@ public:
/** /**
* @brief This class represents an abstraction for GPU plugin remote tensor * @brief This class represents an abstraction for GPU plugin remote tensor
* which is shared with Direct3D 11 2D texture. * which is shared with Direct3D 11 2D texture.
* The plugin object derived from this class can be obtained with create_tensor() call. * The plugin object derived from this class can be obtained with D3DContext::create_tensor() call.
* @note User can also obtain OpenCL 2D image handle from this class. * @note User can also obtain OpenCL 2D image handle from this class.
*/ */
class D3DSurface2DTensor : public ClImage2DTensor { class D3DSurface2DTensor : public ClImage2DTensor {
@ -89,7 +89,7 @@ public:
* @brief This class represents an abstraction for GPU plugin remote context * @brief This class represents an abstraction for GPU plugin remote context
* which is shared with Direct3D 11 device. * which is shared with Direct3D 11 device.
* The plugin object derived from this class can be obtained either with * The plugin object derived from this class can be obtained either with
* GetContext() method of Executable network or using CreateContext() Core call. * ExecutableNetwork::get_context() or Core::create_context() calls.
* @note User can also obtain OpenCL context handle from this class. * @note User can also obtain OpenCL context handle from this class.
*/ */
class D3DContext : public ClContext { class D3DContext : public ClContext {
@ -116,7 +116,7 @@ public:
/** /**
* @brief Constructs D3DContext remote context object from ID3D11Device * @brief Constructs D3DContext remote context object from ID3D11Device
* @param core Inference Engine Core object instance * @param core OpenVINO Runtime Core object instance
* @param deviceName A name of to create a remote context for * @param deviceName A name of to create a remote context for
* @param device A pointer to ID3D11Device to be used to create a remote context * @param device A pointer to ID3D11Device to be used to create a remote context
*/ */

View File

@ -31,7 +31,7 @@ using gpu_handle_param = void*;
/** /**
* @brief This class represents an abstraction for GPU plugin remote tensor * @brief This class represents an abstraction for GPU plugin remote tensor
* which can be shared with user-supplied OpenCL buffer. * which can be shared with user-supplied OpenCL buffer.
* The plugin object derived from this class can be obtained with create_tensor() call. * The plugin object derived from this class can be obtained with ClContext::create_tensor() call.
* @note User can obtain OpenCL buffer handle from this class. * @note User can obtain OpenCL buffer handle from this class.
*/ */
class ClBufferTensor : public RemoteTensor { class ClBufferTensor : public RemoteTensor {
@ -75,7 +75,7 @@ public:
/** /**
* @brief This class represents an abstraction for GPU plugin remote tensor * @brief This class represents an abstraction for GPU plugin remote tensor
* which can be shared with user-supplied OpenCL 2D Image. * which can be shared with user-supplied OpenCL 2D Image.
* The plugin object derived from this class can be obtained with create_tensor() call. * The plugin object derived from this class can be obtained with ClContext::create_tensor() call.
* @note User can obtain OpenCL image handle from this class. * @note User can obtain OpenCL image handle from this class.
*/ */
class ClImage2DTensor : public RemoteTensor { class ClImage2DTensor : public RemoteTensor {
@ -120,7 +120,7 @@ public:
* @brief This class represents an abstraction for GPU plugin remote context * @brief This class represents an abstraction for GPU plugin remote context
* which is shared with OpenCL context object. * which is shared with OpenCL context object.
* The plugin object derived from this class can be obtained either with * The plugin object derived from this class can be obtained either with
* GetContext() method of Executable network or using CreateContext() Core call. * ExecutableNetwork::get_context() or Core::create_context() calls.
*/ */
class ClContext : public RemoteContext { class ClContext : public RemoteContext {
using RemoteContext::create_tensor; using RemoteContext::create_tensor;
@ -138,7 +138,7 @@ public:
/** /**
* @brief Constructs context object from user-supplied OpenCL context handle * @brief Constructs context object from user-supplied OpenCL context handle
* @param core A reference to Inference Engine Core object * @param core A reference to OpenVINO Runtime Core object
* @param deviceName A name of device to create a remote context for * @param deviceName A name of device to create a remote context for
* @param ctx A OpenCL context to be used to create shared remote context * @param ctx A OpenCL context to be used to create shared remote context
*/ */

View File

@ -27,7 +27,7 @@ namespace gpu {
/** /**
* @brief This class represents an abstraction for GPU plugin remote tensor * @brief This class represents an abstraction for GPU plugin remote tensor
* which is shared with VA output surface. * which is shared with VA output surface.
* The plugin object derived from this class can be obtained with create_tensor() call. * The plugin object derived from this class can be obtained with VAContext::create_tensor() call.
* @note User can also obtain OpenCL 2D image handle from this class. * @note User can also obtain OpenCL 2D image handle from this class.
*/ */
class VASurfaceTensor : public ClImage2DTensor { class VASurfaceTensor : public ClImage2DTensor {
@ -43,7 +43,7 @@ public:
{GPU_PARAM_KEY(SHARED_MEM_TYPE), {GPU_PARAM_VALUE(VA_SURFACE)}}}); {GPU_PARAM_KEY(SHARED_MEM_TYPE), {GPU_PARAM_VALUE(VA_SURFACE)}}});
} }
/** /**
* @brief VASurfaceID conversion operator for the VASurfaceBlob object. * @brief VASurfaceID conversion operator for the VASurfaceTensor object.
* @return `VASurfaceID` handle * @return `VASurfaceID` handle
*/ */
operator VASurfaceID() { operator VASurfaceID() {
@ -63,7 +63,7 @@ public:
* @brief This class represents an abstraction for GPU plugin remote context * @brief This class represents an abstraction for GPU plugin remote context
* which is shared with VA display object. * which is shared with VA display object.
* The plugin object derived from this class can be obtained either with * The plugin object derived from this class can be obtained either with
* GetContext() method of Executable network or using CreateContext() Core call. * ExecutableNetwork::get_context() or Core::create_context() calls.
* @note User can also obtain OpenCL context handle from this class. * @note User can also obtain OpenCL context handle from this class.
*/ */
class VAContext : public ClContext { class VAContext : public ClContext {
@ -90,7 +90,7 @@ public:
/** /**
* @brief Constructs remote context object from VA display handle * @brief Constructs remote context object from VA display handle
* @param core Inference Engine Core object * @param core OpenVINO Runtime Core object
* @param deviceName A device name to create a remote context for * @param deviceName A device name to create a remote context for
* @param device A `VADisplay` to create remote context from * @param device A `VADisplay` to create remote context from
*/ */