-
Hi How to make the Function instance for constructor's activationFunction ?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
solved. import ai.djl.ndarray.NDList; public class SigmoidFunction implements Function<NDList,NDList> |
Beta Was this translation helpful? Give feedback.
-
lambda expression is more easy. Function<NDList,NDList> activationFunction = x -> Activation.sigmoid(x); |
Beta Was this translation helpful? Give feedback.
lambda expression is more easy.
Function<NDList,NDList> activationFunction = x -> Activation.sigmoid(x);