Browse Source

Session.LoadFromSavedModel: Prevent optimization

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

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

@@ -16,6 +16,7 @@


using System; using System;
using System.IO; using System.IO;
using System.Runtime.CompilerServices;
using Tensorflow.Util; using Tensorflow.Util;
using static Tensorflow.Binding; using static Tensorflow.Binding;


@@ -40,6 +41,7 @@ namespace Tensorflow
return this; return this;
} }


[MethodImpl(MethodImplOptions.NoOptimization)]
public static Session LoadFromSavedModel(string path) public static Session LoadFromSavedModel(string path)
{ {
lock (Locks.ProcessWide) lock (Locks.ProcessWide)


Loading…
Cancel
Save