Skip to content

Commit

Permalink
Add serde::serialize to activations.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Jan 22, 2025
1 parent e4c3a71 commit 469255e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions candle-nn/src/activation.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//! Activation Functions
//!
use candle::{Result, Tensor};
use serde::Deserialize;

#[derive(Debug, Clone, Copy, PartialEq, Deserialize, Default)]
#[derive(Debug, Clone, Copy, PartialEq, serde::Deserialize, serde::Serialize, Default)]
#[serde(rename_all = "lowercase")]
pub enum Activation {
#[default]
Expand Down

0 comments on commit 469255e

Please sign in to comment.