From b34c598110c91501681d2df768ff0c62589502b9 Mon Sep 17 00:00:00 2001 From: Eli Belash Date: Mon, 30 Sep 2019 01:07:28 +0300 Subject: [PATCH] Binding.Util: Minor change --- src/TensorFlowNET.Core/Binding.Util.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TensorFlowNET.Core/Binding.Util.cs b/src/TensorFlowNET.Core/Binding.Util.cs index 9323784a..dcf191ed 100644 --- a/src/TensorFlowNET.Core/Binding.Util.cs +++ b/src/TensorFlowNET.Core/Binding.Util.cs @@ -175,8 +175,7 @@ namespace Tensorflow public static IEnumerable<(T1, T2)> zip(IEnumerable e1, IEnumerable e2) { - foreach (var (v1, v2) in e1.Zip(e2, (t1, t2) => (t1, t2))) - yield return (v1, v2); + return e1.Zip(e2, (t1, t2) => (t1, t2)); } public static IEnumerable<(TKey, TValue)> enumerate(Dictionary values)