Browse Source

Status: made Check(bool throwException = false) [DebuggerHidden]

tags/v0.12
Eli Belash 6 years ago
parent
commit
c1910e5c9c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/TensorFlowNET.Core/Status/Status.cs

+ 2
- 0
src/TensorFlowNET.Core/Status/Status.cs View File

@@ -15,6 +15,7 @@
******************************************************************************/

using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using static Tensorflow.c_api;

@@ -52,6 +53,7 @@ namespace Tensorflow
/// </summary>
/// <exception cref="TensorflowException">When the returned check is not TF_Code.TF_OK</exception>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[DebuggerHidden]
public void Check(bool throwException = false)
{
if (Code != TF_Code.TF_OK)


Loading…
Cancel
Save