Class LREMetaData
-
- All Implemented Interfaces:
public final class LREMetaData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
LREMetaData.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static LREMetaData.Companion
Companion
-
Constructor Summary
Constructors Constructor Description LREMetaData()
-
Method Summary
Modifier and Type Method Description final static Integer
getDeviceID()
Device ID running Model final static String
getModelID()
Model's UUID final static String
getModelPrecision()
Model-supported numerical precision used at compile time, e.g., float32, float16, or int8. final static String
getSDKVersion()
LEIP SDK version used at compile time. final static Integer
getNumberOfOutputs()
Model's number of output tensors. final static Integer
getNumberOfInputs()
Model's number of input tensors. final static String
getDeviceType()
Model-supported device type. final static String
getTarget()
Model's target compiling info. final static String
getHost()
Model's host compiling info. final static String
getInputLayouts()
Model's layout of input tensors. final static String
getInputShapes()
Model's input tensor shapes. final static String
getOutputShapes()
Model's output tensor shapes. final static String
getInputDTypes()
Model's input data types. final static String
getOutputDTypes()
Model's output data type. final static String
getTRTCalibration()
Model's TensorRT calibration tables. final static String
getOptimization()
Model's optimization parameters used at compile time. final static String
getQuantization()
Model's quantization parameters used at compile time. final static Integer
getInputWidth()
Model's input shape width. final static Integer
getInputHeight()
Model's input shape height. -
-
Method Detail
-
getDeviceID
final static Integer getDeviceID()
Device ID running Model
-
getModelID
final static String getModelID()
Model's UUID
-
getModelPrecision
final static String getModelPrecision()
Model-supported numerical precision used at compile time, e.g., float32, float16, or int8.
Other data types are possible depending on the target hardware.
-
getSDKVersion
final static String getSDKVersion()
LEIP SDK version used at compile time.
-
getNumberOfOutputs
final static Integer getNumberOfOutputs()
Model's number of output tensors.
-
getNumberOfInputs
final static Integer getNumberOfInputs()
Model's number of input tensors.
-
getDeviceType
final static String getDeviceType()
Model-supported device type.
-
getTarget
final static String getTarget()
Model's target compiling info.
- Returns:
the collection of flags used to specify the target at compile time
-
getHost
final static String getHost()
Model's host compiling info. The host is the device used to execute the LRE; if no hardware acceleration is present in the system, the host and target may be the same. Typically, the target is the GPU/FPGA/other and the host is the CPU on the system.
-
getInputLayouts
final static String getInputLayouts()
Model's layout of input tensors. This is meaningful for computer vision models. For these cases, the possible values are
NCHW
(channel first) orNHWC
(channel last).
-
getInputShapes
final static String getInputShapes()
Model's input tensor shapes. For example: "shape": { "batch": 1, "channel": 3, "width": 640, "height": 640 }
-
getOutputShapes
final static String getOutputShapes()
Model's output tensor shapes. For example: "shape": { "batch": 1, "candidates": 6300, "classes": 26 }
-
getInputDTypes
final static String getInputDTypes()
Model's input data types.
-
getOutputDTypes
final static String getOutputDTypes()
Model's output data type.
-
getTRTCalibration
final static String getTRTCalibration()
Model's TensorRT calibration tables.
-
getOptimization
final static String getOptimization()
Model's optimization parameters used at compile time.
-
getQuantization
final static String getQuantization()
Model's quantization parameters used at compile time.
-
getInputWidth
final static Integer getInputWidth()
Model's input shape width.
-
getInputHeight
final static Integer getInputHeight()
Model's input shape height.
-
-
-
-