Package org.intel.openvino
Class Model
- java.lang.Object
-
- org.intel.openvino.Wrapper
-
- org.intel.openvino.Model
-
public class Model extends Wrapper
A user-defined model
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedModel(long addr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddelete(long nativeObj)Dimensionget_batch()Helper method to get associated batch size for a Modeljava.lang.Stringget_name()Get the unique name of the model.Outputinput()Outputoutput()java.util.ArrayList<Output>outputs()Get model outputs.voidreshape(int[] shape)-
Methods inherited from class org.intel.openvino.Wrapper
finalize, getNativeObjAddr
-
-
-
-
Method Detail
-
get_name
public java.lang.String get_name()
Get the unique name of the model.- Returns:
- A const reference to the model's unique name.
-
get_batch
public Dimension get_batch()
Helper method to get associated batch size for a ModelChecks layout of each parameter in a Model and extracts value for N (B) dimension. All values are then merged and returned
Throws ::ov::AssertFailure with details in case of error.
- Returns:
- Dimension representing current batch size. Can represent a number or be a dynamic
-
outputs
public java.util.ArrayList<Output> outputs()
Get model outputs.- Returns:
- A list of model outputs.
-
output
public Output output()
-
reshape
public void reshape(int[] shape)
-
input
public Output input()
-
-