Browse Source

Binding.Util: Removed catch clauses in tf_with

tags/v0.12
Eli Belash 6 years ago
parent
commit
776a129aa8
1 changed files with 0 additions and 15 deletions
  1. +0
    -15
      src/TensorFlowNET.Core/Binding.Util.cs

+ 0
- 15
src/TensorFlowNET.Core/Binding.Util.cs View File

@@ -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__();


Loading…
Cancel
Save