Skip to content

Commit eb136c9

Browse files
committed
Merge remote-tracking branch 'origin/master' into release
2 parents 7cc6716 + dd6ebc4 commit eb136c9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/graph.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -966,10 +966,14 @@ impl<'a> OperationDescription<'a> {
966966
}
967967

968968
/// Sets an attribute which holds an array of tensors.
969-
pub fn set_attr_tensor_list<T: IntoIterator<Item = Tensor<u8>>>(&mut self,
970-
attr_name: &str,
971-
value: T)
972-
-> Result<()> {
969+
pub fn set_attr_tensor_list<I, T>(
970+
&mut self,
971+
attr_name: &str,
972+
value: I
973+
) -> Result<()>
974+
where I: IntoIterator<Item = Tensor<T>>,
975+
T: TensorType
976+
{
973977
let c_attr_name = CString::new(attr_name)?;
974978
let mut status = Status::new();
975979
unsafe {

0 commit comments

Comments
 (0)