FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Binding.Util: Removed catch clauses in tf_with · oumarxy/TensorFlow.NET@776a129 · GitHub

Commit 776a129

Browse files
committed
Binding.Util: Removed catch clauses in tf_with
1 parent f900b94 commit 776a129

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

‎src/TensorFlowNET.Core/Binding.Util.cs‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ public static void tf_with(IObjectLife py, Action<IObjectLife> action)
106106
py.__enter__();
107107
action(py);
108108
}
109-
catch (Exception ex)
110-
{
111-
Console.WriteLine(ex.ToString());
112-
throw;
113-
}
114109
finally
115110
{
116111
py.__exit__();
@@ -126,11 +121,6 @@ public static void tf_with<T>(T py, Action<T> action) where T : IObjectLife
126121
py.__enter__();
127122
action(py);
128123
}
129-
catch (Exception ex)
130-
{
131-
Console.WriteLine(ex.ToString());
132-
throw;
133-
}
134124
finally
135125
{
136126
py.__exit__();
@@ -146,11 +136,6 @@ public static TOut tf_with<TIn, TOut>(TIn py, Func<TIn, TOut> action) where TIn
146136
py.__enter__();
147137
return action(py);
148138
}
149-
catch (Exception ex)
150-
{
151-
Console.WriteLine(ex.ToString());
152-
return default(TOut);
153-
}
154139
finally
155140
{
156141
py.__exit__();

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL