FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
#include <InferenceEngine.hpp>
Classes | |
struct | NetworkNode |
Public Types | |
typedef std::shared_ptr< InferenceEngine > | pointer |
![]() | |
typedef std::shared_ptr< Object > | pointer |
Public Member Functions | |
virtual void | setFilename (std::string filename) |
virtual void | setModelAndWeights (std::vector< uint8_t > model, std::vector< uint8_t > weights) |
virtual std::string | getFilename () const |
virtual void | run ()=0 |
virtual void | addInputNode (uint portID, std::string name, NodeType type=NodeType::IMAGE, TensorShape shape={}) |
virtual void | addOutputNode (uint portID, std::string name, NodeType type=NodeType::IMAGE, TensorShape shape={}) |
virtual void | setInputNodeShape (std::string name, TensorShape shape) |
virtual void | setOutputNodeShape (std::string name, TensorShape shape) |
virtual NetworkNode | getInputNode (std::string name) const |
virtual NetworkNode | getOutputNode (std::string name) const |
virtual std::unordered_map< std::string, NetworkNode > | getOutputNodes () const |
virtual std::unordered_map< std::string, NetworkNode > | getInputNodes () const |
virtual void | setInputData (std::string inputNodeName, std::shared_ptr< Tensor > tensor) |
virtual std::shared_ptr< Tensor > | getOutputData (std::string inputNodeName) |
virtual void | load ()=0 |
virtual bool | isLoaded () const |
virtual ImageOrdering | getPreferredImageOrdering () const =0 |
virtual std::string | getName () const =0 |
virtual std::vector< ModelFormat > | getSupportedModelFormats () const =0 |
virtual ModelFormat | getPreferredModelFormat () const =0 |
virtual bool | isModelFormatSupported (ModelFormat format) |
virtual void | setDeviceType (InferenceDeviceType type) |
virtual void | setDevice (int index=-1, InferenceDeviceType type=InferenceDeviceType::ANY) |
virtual std::vector< InferenceDeviceInfo > | getDeviceList () |
virtual int | getMaxBatchSize () |
virtual void | setMaxBatchSize (int size) |
![]() | |
Object () | |
virtual | ~Object () |
Reporter & | getReporter () |
Protected Member Functions | |
virtual void | setIsLoaded (bool loaded) |
![]() | |
Reporter & | reportError () |
Reporter & | reportWarning () |
Reporter & | reportInfo () |
ReporterEnd | reportEnd () const |
Protected Attributes | |
std::unordered_map< std::string, NetworkNode > | mInputNodes |
std::unordered_map< std::string, NetworkNode > | mOutputNodes |
int | m_deviceIndex = -1 |
InferenceDeviceType | m_deviceType = InferenceDeviceType::ANY |
int | m_maxBatchSize = 1 |
std::vector< uint8_t > | m_model |
std::vector< uint8_t > | m_weights |
![]() | |
std::weak_ptr< Object > | mPtr |
Additional Inherited Members | |
![]() | |
static std::string | getStaticNameOfClass () |
Abstract class for neural network inference engines (TensorFlow, TensorRT ++)
typedef std::shared_ptr<InferenceEngine> fast::InferenceEngine::pointer |
|
virtual |
|
virtual |
|
virtual |
Get a list of devices available for this inference engine.
Reimplemented in fast::OpenVINOEngine, and fast::TensorFlowEngine.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in fast::OpenVINOEngine, fast::TensorRTEngine, and fast::TensorFlowEngine.
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in fast::OpenVINOEngine, fast::TensorFlowEngine, and fast::TensorRTEngine.
|
pure virtual |
Implemented in fast::OpenVINOEngine, fast::TensorFlowEngine, and fast::TensorRTEngine.
|
pure virtual |
Implemented in fast::OpenVINOEngine, fast::TensorFlowEngine, and fast::TensorRTEngine.
|
virtual |
|
virtual |
|
pure virtual |
Implemented in fast::OpenVINOEngine, fast::TensorRTEngine, and fast::TensorFlowEngine.
|
pure virtual |
Implemented in fast::TensorFlowEngine, fast::OpenVINOEngine, and fast::TensorRTEngine.
|
virtual |
Specify which device index and/or device type to use
index | Index of the device to use. -1 means any device can be used |
type |
|
virtual |
Set which device type the inference engine should use (assuming the IE supports multiple devices like OpenVINO)
type |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
virtual |
Reimplemented in fast::TensorRTEngine.
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |