mod alias;
mod owned;
mod plan;
mod runtime;
mod sort;
pub(crate) use owned::{OwnedComputeKind, OwnedCorePlan, from_borrowed_core_to_owned};
pub(crate) use plan::ComputeKind;
pub(crate) use plan::OutputKind;
pub(crate) use plan::{core_plan_computation, plan_computation};
use crate::tensor::backend::Backend;
use crate::tensor::graph::NodeKind;
#[inline]
pub(crate) fn get_id<T, B: Backend>(node: &NodeKind<T, B>) -> usize {
match node {
NodeKind::Edge(edge) => edge.id,
NodeKind::Slot(slot) => slot.id,
NodeKind::Node(node) => node.id,
NodeKind::Cache(cache) => cache.get_node().id,
NodeKind::Baked(baked) => baked.id,
}
}