Skip to content

Commit b152712

Browse files
rbackhouseRichard Backhouse
andauthored
wasi-nn: Make Tensor properties public allowing external Engines to extend without being part of wasmtime-wasi-nn (#10493)
Co-authored-by: Richard Backhouse <[email protected]>
1 parent 01810c5 commit b152712

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/wasi-nn/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ impl std::ops::Deref for Graph {
7070
/// https://github.com/WebAssembly/wasi-nn/pull/70).
7171
#[derive(Clone, PartialEq)]
7272
pub struct Tensor {
73-
dimensions: Vec<u32>,
74-
ty: wit::TensorType,
75-
data: Vec<u8>,
73+
pub dimensions: Vec<u32>,
74+
pub ty: wit::TensorType,
75+
pub data: Vec<u8>,
7676
}
7777
impl fmt::Debug for Tensor {
7878
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

0 commit comments

Comments
 (0)