l2Norm(epsilon:)
Adds an L2 spatial normalization operation to the current graph.
Declaration
func l2Norm(epsilon: Float = .ulpOfOne.squareRoot()) -> BNNSGraph.Builder.Tensor<T>Parameters
- epsilon:
The epsilon value that the function uses to avoid division by zero.
Discussion
This function performs y = x / sqrt(sum_square(x) + epsilon).