Class Model


  • public class Model
    extends Wrapper
    A user-defined model
    • Constructor Detail

      • Model

        protected Model​(long addr)
    • 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 Model

        Checks 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()
      • delete

        protected void delete​(long nativeObj)
        Overrides:
        delete in class Wrapper