Package ai.djl.modality
Class Output
- java.lang.Object
-
- ai.djl.modality.Input
-
- ai.djl.modality.Output
-
public class Output extends Input
A class stores the generic inference results.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Returns the status code of the output.java.lang.String
getMessage()
Returns the status code of the output.void
setCode(int code)
Sets the status code of the output.void
setMessage(java.lang.String message)
Sets the status message of the output.-
Methods inherited from class ai.djl.modality.Input
add, add, add, add, add, add, add, addProperty, get, get, getAsBytes, getAsBytes, getAsNDArray, getAsNDArray, getAsNDList, getAsNDList, getAsString, getAsString, getContent, getData, getDataAsNDList, getProperties, getProperty, setContent, setProperties, toString
-
-
-
-
Method Detail
-
getCode
public int getCode()
Returns the status code of the output.- Returns:
- the status code of the output
-
setCode
public void setCode(int code)
Sets the status code of the output.- Parameters:
code
- the status code of the output
-
getMessage
public java.lang.String getMessage()
Returns the status code of the output.- Returns:
- the status code of the output
-
setMessage
public void setMessage(java.lang.String message)
Sets the status message of the output.- Parameters:
message
- the status message of the output
-
-