From 776a129aa8bed47870fa5406ed8ea86b4048e39a Mon Sep 17 00:00:00 2001 From: Eli Belash Date: Mon, 30 Sep 2019 01:07:23 +0300 Subject: [PATCH] Binding.Util: Removed catch clauses in tf_with --- src/TensorFlowNET.Core/Binding.Util.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/TensorFlowNET.Core/Binding.Util.cs b/src/TensorFlowNET.Core/Binding.Util.cs index f7d1a4e0..9323784a 100644 --- a/src/TensorFlowNET.Core/Binding.Util.cs +++ b/src/TensorFlowNET.Core/Binding.Util.cs @@ -106,11 +106,6 @@ namespace Tensorflow py.__enter__(); action(py); } - catch (Exception ex) - { - Console.WriteLine(ex.ToString()); - throw; - } finally { py.__exit__(); @@ -126,11 +121,6 @@ namespace Tensorflow py.__enter__(); action(py); } - catch (Exception ex) - { - Console.WriteLine(ex.ToString()); - throw; - } finally { py.__exit__(); @@ -146,11 +136,6 @@ namespace Tensorflow py.__enter__(); return action(py); } - catch (Exception ex) - { - Console.WriteLine(ex.ToString()); - return default(TOut); - } finally { py.__exit__();