diff --git a/src/TensorFlowNET.Core/Binding.Util.cs b/src/TensorFlowNET.Core/Binding.Util.cs index 150fa89a..c70af1fd 100644 --- a/src/TensorFlowNET.Core/Binding.Util.cs +++ b/src/TensorFlowNET.Core/Binding.Util.cs @@ -165,6 +165,12 @@ namespace Tensorflow yield return (t1[i], t2[i]); } + public static IEnumerable<(T1, T2, T3)> zip(IList t1, IList t2, IList t3) + { + for (int i = 0; i < t1.Count; i++) + yield return (t1[i], t2[i], t3[i]); + } + public static IEnumerable<(T1, T2)> zip(NDArray t1, NDArray t2) where T1: unmanaged where T2: unmanaged @@ -203,6 +209,7 @@ namespace Tensorflow yield return (i, values[i]); } + [DebuggerStepThrough] public static Dictionary ConvertToDict(object dyn) { var dictionary = new Dictionary();