From 7edb99607e19840650c9d34afe116adba9370907 Mon Sep 17 00:00:00 2001 From: dante <45801863+alexander-camuto@users.noreply.github.com> Date: Tue, 26 Nov 2024 00:00:57 +0900 Subject: [PATCH] Update ops.rs --- src/tensor/ops.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tensor/ops.rs b/src/tensor/ops.rs index 3fce49d7a..b17a297f8 100644 --- a/src/tensor/ops.rs +++ b/src/tensor/ops.rs @@ -1664,7 +1664,7 @@ pub mod nonlinearities { /// Some(&[2, 15, 2, 1, 1, 0]), /// &[2, 3], /// ).unwrap(); - /// let result = exp(&x, 1.0); + /// let result = exp(&x, 1.0, std::f64::consts::E); /// let expected = Tensor::::new(Some(&[7, 3269017, 7, 3, 3, 1]), &[2, 3]).unwrap(); /// assert_eq!(result, expected); /// @@ -1673,7 +1673,7 @@ pub mod nonlinearities { /// Some(&[37, 12, 41]), /// &[3], /// ).unwrap(); - /// let result = exp(&x, 512.0); + /// let result = exp(&x, 512.0, std::f64::consts::E); /// /// let expected = Tensor::::new(Some(&[550, 524, 555]), &[3]).unwrap(); ///