Skip to content

Commit

Permalink
Update ops.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto committed Nov 25, 2024
1 parent 95b6068 commit 7edb996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tensor/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<IntegerRep>::new(Some(&[7, 3269017, 7, 3, 3, 1]), &[2, 3]).unwrap();
/// assert_eq!(result, expected);
///
Expand All @@ -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::<IntegerRep>::new(Some(&[550, 524, 555]), &[3]).unwrap();
///
Expand Down

0 comments on commit 7edb996

Please sign in to comment.