apply activation function to nn outputs