Browse Source

Disable AutoGraphAttribute.

tags/v0.30
Oceania2018 5 years ago
parent
commit
b59122f511
3 changed files with 3 additions and 4 deletions
  1. +2
    -2
      src/TensorFlowNET.Core/Graphs/AutoGraphAttribute.cs
  2. +0
    -1
      src/TensorFlowNET.Core/Tensorflow.Binding.csproj
  3. +1
    -1
      test/TensorFlowNET.UnitTest/ManagedAPI/FunctionApiTest.cs

+ 2
- 2
src/TensorFlowNET.Core/Graphs/AutoGraphAttribute.cs View File

@@ -1,4 +1,4 @@
using MethodBoundaryAspect.Fody.Attributes;
/*using MethodBoundaryAspect.Fody.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -77,4 +77,4 @@ namespace Tensorflow.Graphs
args.ReturnValue = function(originalInputs);
}
}
}
}*/

+ 0
- 1
src/TensorFlowNET.Core/Tensorflow.Binding.csproj View File

@@ -77,7 +77,6 @@ https://tensorflownet.readthedocs.io</Description>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.11.4" />
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.138" />
<PackageReference Include="NumSharp.Lite" Version="0.1.8" />
<PackageReference Include="Protobuf.Text" Version="0.4.0" />
</ItemGroup>


+ 1
- 1
test/TensorFlowNET.UnitTest/ManagedAPI/FunctionApiTest.cs View File

@@ -40,7 +40,7 @@ namespace TensorFlowNET.UnitTest.ManagedAPI
/// <param name="a"></param>
/// <param name="b"></param>
/// <returns></returns>
[AutoGraph]
// [AutoGraph]
Tensor Mul(Tensor a, Tensor b)
{
return a * b;


Loading…
Cancel
Save