use burn_core as burn;
use burn::tensor::Tensor;
use burn::tensor::backend::Backend;
pub(crate) enum CacheState<T> {
Value(T),
Empty,
}
pub struct TensorCache<B: Backend, const D: usize> {
pub(crate) state: CacheState<Tensor<B, D>>,
}
impl<B: Backend, const D: usize> TensorCache<B, D> {
pub fn empty() -> Self {
Self {
state: CacheState::Empty,
}
}
}