Skip to content

Commit

Permalink
chore: minor edits to simple_graph example
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelspark committed May 22, 2023
1 parent d4e28cd commit e95dfed
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions wonnx/examples/simple_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ async fn run() -> Result<(), WonnxError> {
Ok(())
}

// Hardware management
async fn execute_gpu() -> Result<HashMap<String, TensorData<'static>>, SessionError> {
// Hyperparameters
let n = 5;
Expand All @@ -30,7 +29,6 @@ async fn execute_gpu() -> Result<HashMap<String, TensorData<'static>>, SessionEr
let data_w: Vec<f32> = (0..m * c * kernel_n * kernel_n).map(|_| 1.0f32).collect();

let session = {
use wonnx::builder::*;
let input_x = input("X", ScalarType::F32, &[1, c, n, n]);
let weights = tensor("W", &[m, c, 3, 3], data_w.into());
let conv = input_x.conv(&weights, &[3, 3], &[m, c, 3, 3]);
Expand Down

0 comments on commit e95dfed

Please sign in to comment.