Skip to content

Commit

Permalink
Hashmap was used twice by both Eben and I, also added error display w…
Browse files Browse the repository at this point in the history
…hen client can't be start
  • Loading branch information
BradenEverson committed Feb 21, 2024
1 parent f5bb440 commit 0ea652f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/core/graph/context.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::collections::HashMap;

use self::operation::{
ConstantBinding, Node, NodeIdentifier, Operation, Parameter, ParameterBinding,
};
Expand Down
2 changes: 1 addition & 1 deletion src/core/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn example() {
let maybe_client = xla::PjRtClient::gpu(0.7, false);
let client = match maybe_client {
Ok(c) => c,
Err(_) => panic!("Failed to construct XLA client!")
Err(e) => panic!("Failed to construct XLA client!\n{}", e)
};
let name = "test";
let executable = ctx.compile(sum, &name, &client);
Expand Down

0 comments on commit 0ea652f

Please sign in to comment.