Skip to content

Commit 9d7c2cc

Browse files
bindgen-generated TF_SetAttrTensorList() takes a *const *const TF_Tensor
1 parent 2e2dc6e commit 9d7c2cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ impl<'a> OperationDescription<'a> {
879879
let ptrs: Vec<*mut tf::TF_Tensor> = value.into_iter().map(|x| x.into_ptr()).collect();
880880
tf::TF_SetAttrTensorList(self.inner,
881881
c_attr_name.as_ptr(),
882-
ptrs.as_ptr(),
882+
ptrs.as_ptr() as *const *const tf::TF_Tensor,
883883
ptrs.len() as c_int,
884884
status.inner());
885885
}

0 commit comments

Comments
 (0)