Package ai.djl.mxnet.jna
Class FunctionInfo
java.lang.Object
ai.djl.mxnet.jna.FunctionInfo
A FunctionInfo represents an operator (ie function) within the MXNet Engine.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the names of the params to the operator.Returns the types of the operator arguments.Returns the name of the operator.intinvoke(ai.djl.ndarray.NDManager manager, ai.djl.ndarray.NDArray[] src, ai.djl.ndarray.NDArray[] dest, ai.djl.util.PairList<String, ?> params) Calls an operator with the given arguments.ai.djl.ndarray.NDArray[]invoke(ai.djl.ndarray.NDManager manager, ai.djl.ndarray.NDArray[] src, ai.djl.util.PairList<String, ?> params) Calls an operator with the given arguments.
-
Method Details
-
invoke
public int invoke(ai.djl.ndarray.NDManager manager, ai.djl.ndarray.NDArray[] src, ai.djl.ndarray.NDArray[] dest, ai.djl.util.PairList<String, ?> params) Calls an operator with the given arguments.- Parameters:
manager- the manager to attach the result tosrc- the input NDArray(s) to the operatordest- the destination NDArray(s) to be overwritten with the result of the operatorparams- the non-NDArray arguments to the operator. Should be aPairList<String, String>- Returns:
- the error code or zero for no errors
-
invoke
public ai.djl.ndarray.NDArray[] invoke(ai.djl.ndarray.NDManager manager, ai.djl.ndarray.NDArray[] src, ai.djl.util.PairList<String, ?> params) Calls an operator with the given arguments.- Parameters:
manager- the manager to attach the result tosrc- the input NDArray(s) to the operatorparams- the non-NDArray arguments to the operator. Should be aPairList<String, String>- Returns:
- the error code or zero for no errors
-
getFunctionName
Returns the name of the operator.- Returns:
- the name of the operator
-
getArgumentNames
Returns the names of the params to the operator.- Returns:
- the names of the params to the operator
-
getArgumentTypes
Returns the types of the operator arguments.- Returns:
- the types of the operator arguments
-