mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
update: LSTMState and GRUState fields to be public (#2384)
This commit is contained in:
@ -50,8 +50,8 @@ pub trait RNN {
|
|||||||
#[allow(clippy::upper_case_acronyms)]
|
#[allow(clippy::upper_case_acronyms)]
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct LSTMState {
|
pub struct LSTMState {
|
||||||
h: Tensor,
|
pub h: Tensor,
|
||||||
c: Tensor,
|
pub c: Tensor,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LSTMState {
|
impl LSTMState {
|
||||||
@ -205,7 +205,7 @@ impl RNN for LSTM {
|
|||||||
#[allow(clippy::upper_case_acronyms)]
|
#[allow(clippy::upper_case_acronyms)]
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct GRUState {
|
pub struct GRUState {
|
||||||
h: Tensor,
|
pub h: Tensor,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl GRUState {
|
impl GRUState {
|
||||||
|
Reference in New Issue
Block a user