Skip to content

Commit 2e2dc6e

Browse files
bindgen-generated TF_SessionRun() takes a *const *const TF_Tensor
1 parent 6d94c7a commit 2e2dc6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl Session {
6969
tf::TF_SessionRun(self.inner,
7070
ptr::null(),
7171
step.input_ports.as_ptr(),
72-
input_tensors.as_mut_ptr(),
72+
input_tensors.as_ptr() as *const *const tf::TF_Tensor,
7373
input_tensors.len() as c_int,
7474
step.output_ports.as_ptr(),
7575
step.output_tensors.as_mut_ptr(),

0 commit comments

Comments
 (0)