Skip to content

Commit

Permalink
refactor function name
Browse files Browse the repository at this point in the history
  • Loading branch information
kigichang committed Oct 11, 2024
1 parent 0e3c841 commit d16a45e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions candle-nn/src/rnn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub trait RNN {
fn states_to_tensor(&self, states: &[Self::State]) -> Result<Tensor>;

/// Combines forward and backward states to a tensor.
fn combine_states_to_tensor(
fn bidirectional_states_to_tensor(
&self,
forward_states: &[Self::State],
backward_states: &[Self::State],
Expand Down Expand Up @@ -259,7 +259,7 @@ impl RNN for LSTM {
Tensor::stack(&states, 1)
}

fn combine_states_to_tensor(
fn bidirectional_states_to_tensor(
&self,
forward_states: &[Self::State],
backward_states: &[Self::State],
Expand Down Expand Up @@ -447,7 +447,7 @@ impl RNN for GRU {
Tensor::stack(&states, 1)
}

fn combine_states_to_tensor(
fn bidirectional_states_to_tensor(
&self,
forward_states: &[Self::State],
backward_states: &[Self::State],
Expand Down

0 comments on commit d16a45e

Please sign in to comment.