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