Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Tamayo committed Aug 21, 2023
1 parent d0b9e22 commit c0e37f7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 202 deletions.
8 changes: 0 additions & 8 deletions crates/wasi-nn/src/backend/kserve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ impl Default for KServeBackend {
}
}

unsafe impl Send for KServeBackend {}

unsafe impl Sync for KServeBackend {}

impl Backend for KServeBackend {
fn name(&self) -> &str {
"KServe"
Expand All @@ -54,10 +50,6 @@ impl Backend for KServeBackend {

struct KServeGraph();

unsafe impl Send for KServeGraph {}

unsafe impl Sync for KServeGraph {}

impl BackendGraph for KServeGraph {
fn init_execution_context(&mut self) -> Result<ExecutionContext, BackendError> {
return Err(BackendError::UnsupportedOperation("init_execution_context"));
Expand Down
192 changes: 0 additions & 192 deletions crates/wasi-nn/src/impl.rs

This file was deleted.

4 changes: 2 additions & 2 deletions crates/wasi-nn/src/witx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl<'a> gen::wasi_ephemeral_nn::WasiEphemeralNn for WasiNnCtx {
}

async fn load_by_name<'b>(&mut self, _name: &wiggle::GuestPtr<'b, str>) -> Result<gen::types::Graph> {
todo!("need implemented")
todo!("needs implemented")
// let graph = if let Some(backend) = self.backends.get_mut(&encoding.try_into()?) {
// // Retrieve all of the "builder lists" from the Wasm memory (see
// // $graph_builder_array) as slices for a backend to operate on.
Expand Down Expand Up @@ -190,7 +190,7 @@ impl From<gen::types::GraphEncoding> for crate::wit::types::GraphEncoding {
gen::types::GraphEncoding::Tensorflowlite => {
crate::wit::types::GraphEncoding::Tensorflowlite
}
gen::types::GraphEncoding::Autodetect => todo!("autodetect not supported"),
gen::types::GraphEncoding::Autodetect => crate::wit::types::GraphEncoding::Autodetect
}
}
}
Expand Down

0 comments on commit c0e37f7

Please sign in to comment.