Class MLModel

Direct Known Subclasses:
MLModelRPCClient

public abstract class MLModel extends Service
  • Field Details

    • SUBTYPE

      public static final Subtype SUBTYPE
  • Constructor Details

    • MLModel

      public MLModel(String name)
  • Method Details

    • named

      public static Common.ResourceName named(String name)
    • fromRobot

      public static MLModel fromRobot(RobotClient robot, String name)
    • doCommand

      public final com.google.protobuf.Struct doCommand(Map<String,com.google.protobuf.Value> command)
      Description copied from class: Resource
      Send/Receive arbitrary commands to the Resource
      Overrides:
      doCommand in class Resource
      Parameters:
      command - the command to execute
      Returns:
      result of the executed command
    • infer

      public abstract Map<String,ai.djl.ndarray.NDArray> infer(Map<String,ai.djl.ndarray.NDArray> inputTensors, ai.djl.ndarray.NDManager manager, Optional<com.google.protobuf.Struct> extra)
    • getMetadata

      public abstract Metadata getMetadata(Optional<com.google.protobuf.Struct> extra)