use crate::{
checkpoint::builder::CheckpointerBuilder,
grads::Gradients,
graph::StepBoxed,
tensor::{AutodiffTensor, NodeRefCount},
};
use burn_backend::Backend;
pub trait AutodiffClient: Send + Clone {
fn register(&self, node_id: NodeRefCount, step: StepBoxed, actions: CheckpointerBuilder);
fn backward<B: Backend>(&self, tensor: AutodiffTensor<B>) -> Gradients;
}
pub type AutodiffClientImpl = super::graph::GraphMutexClient;