Skip to content

Commit 67a525e

Browse files
committed
Make session_ptr and memory_info pub(crate)
1 parent 7377eb5 commit 67a525e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/src/session.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ impl SessionBuilder {
291291
/// Type storing the session information, built from an [`Environment`](environment/struct.Environment.html)
292292
#[derive(Debug)]
293293
pub struct Session {
294-
session_ptr: *mut sys::OrtSession,
294+
pub(crate) session_ptr: *mut sys::OrtSession,
295295
allocator_ptr: *mut sys::OrtAllocator,
296-
memory_info: MemoryInfo,
296+
pub(crate) memory_info: MemoryInfo,
297297
/// Information about the ONNX's inputs as stored in loaded file
298298
pub inputs: Vec<Input>,
299299
/// Information about the ONNX's outputs as stored in loaded file

0 commit comments

Comments
 (0)