normalize method

Tensor normalize({
  1. double eps = 1e-12,
})

Implementation

Tensor normalize({double eps = 1e-12}) {
  // This calls your optimized C++ L2 Row Normalize
  final h = engine.layerNorm(_handle, eps);
  final out = Tensor._raw(h, shape);

  // CRITICAL: If your C++ engine doesn't automatically link children
  // for autograd, you must do it here:
  // out._children = [this];

  return out;
}