wasi-nn: refactor wasi-nn context to use multiple backends

This commit is contained in:
Andrew Brown
2021-08-09 16:54:46 -07:00
parent f0147f23e8
commit 2e95d4e7c6
4 changed files with 79 additions and 194 deletions

View File

@@ -33,7 +33,7 @@ pub(crate) trait BackendExecutionContext {
/// Errors returned by a backend; [BackendError::BackendAccess] is a catch-all
/// for failures interacting with the ML library.
#[derive(Debug, Error)]
pub(crate) enum BackendError {
pub enum BackendError {
#[error("Failed while accessing backend")]
BackendAccess(#[from] anyhow::Error),
#[error("Failed while accessing guest module")]