Class InferModelOperator

    • Constructor Detail

      • InferModelOperator

        public InferModelOperator​(@NonNull Operator childOperator,
                                  @NonNull java.io.InputStream model,
                                  @NonNull java.lang.String name,
                                  @NonNull Query query)
                           throws java.io.IOException
        Create a new InferModelOperator.
        Parameters:
        childOperator - The previous operator in the operator chain of Query instance.
        model - An input stream containing the TensorFlow model.
        name - The name of the model. Used internally as the filename under which the model is temporarily stored on the worker. It is the responsibility of the client code that this name is unique.
        query - The Query instance on which Query.joinWith(stream.nebula.runtime.Query) was called.
        Throws:
        java.lang.IllegalArgumentException - If model is null.
        java.io.IOException - If the input stream cannot be read.
    • Method Detail

      • getModel

        public byte[] getModel()
        Access the TensorFlow model as a byte array.
        Returns:
        The TensorFlow model.
      • getName

        public java.lang.String getName()
        Access the model name.
        Returns:
        The model name.
      • getInputAttributes

        public java.util.List<FieldExpression> getInputAttributes()
        Access the input attributes.
        Returns:
        The list of input attributes.
      • getOutputAttributes

        public java.util.List<TypedFieldExpression> getOutputAttributes()
        Access the output attributes.
        Returns:
        The list of output attributes.