Skip to content

Commit

Permalink
Make tensorfunction field pub
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wahl <[email protected]>
  • Loading branch information
Matthias Wahl committed Oct 8, 2020
1 parent bc60232 commit 999ebd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/activations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn _tanh(x: &Tensor) -> Tensor {
x.tanh()
}

pub struct TensorFunction(Box<fn(&Tensor) -> Tensor>);
pub struct TensorFunction(pub Box<fn(&Tensor) -> Tensor>);

impl std::fmt::Debug for TensorFunction {
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
Expand Down

0 comments on commit 999ebd8

Please sign in to comment.